From e113ca6709c73855ad5d207e525b68e5e987929d Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Sat, 15 Feb 2020 15:19:31 -0800 Subject: [PATCH] Escape \b in keyword.other.fn.rust I'm trying to open this file and convert it to json, this seemed to be a bug (?) The cson parser I'm using converts that string to `\x08fn\x08` --- grammars/rust.cson | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grammars/rust.cson b/grammars/rust.cson index bea3b87..29ef572 100644 --- a/grammars/rust.cson +++ b/grammars/rust.cson @@ -422,7 +422,7 @@ { 'include': '#unsafe' } { 'comment': 'Function arguments' - 'match': '\bfn\b' + 'match': '\\bfn\\b' 'name': 'keyword.other.fn.rust' } ]