File tree Expand file tree Collapse file tree 1 file changed +34
-4
lines changed Expand file tree Collapse file tree 1 file changed +34
-4
lines changed Original file line number Diff line number Diff line change @@ -133,10 +133,40 @@ repository:
133133
134134 # Escape sequences
135135 escapes :
136- name : " constant.character.escape.emacs.lisp"
137- match : " (\\\\ )."
138- captures :
139- 1 : name : " punctuation.definition.backslash.emacs.lisp"
136+ patterns : [{
137+
138+ # Hex: ?\uFFFF
139+ name : " constant.character.escape.hex.emacs.lisp"
140+ match : " (\\ ?)\\\\ u[A-Fa-f0-9]{4}|(\\ ?)\\\\ U00[A-Fa-f0-9]{6}"
141+ captures :
142+ 1 : name : " punctuation.definition.codepoint.emacs.lisp"
143+ 2 : name : " punctuation.definition.codepoint.emacs.lisp"
144+ },{
145+ # Hex: ?\xFF
146+ name : " constant.character.escape.hex.emacs.lisp"
147+ match : " (\\ ?)\\\\ x[A-Fa-f0-9]+"
148+ captures :
149+ 1 : name : " punctuation.definition.codepoint.emacs.lisp"
150+ },{
151+ # Octal: ?\777
152+ name : " constant.character.escape.octal.emacs.lisp"
153+ match : " (\\ ?)\\\\ [0-7]{1,3}"
154+ captures :
155+ 1 : name : " punctuation.definition.codepoint.emacs.lisp"
156+ },{
157+ # Codepoint query: ?x
158+ name : " constant.numeric.codepoint.emacs.lisp"
159+ match : " (\\ ?)(?:[^\\\\ ]|(\\\\ ).)"
160+ captures :
161+ 1 : name : " punctuation.definition.codepoint.emacs.lisp"
162+ 2 : name : " punctuation.definition.backslash.emacs.lisp"
163+ },{
164+ # Generic escape: \x
165+ name : " constant.character.escape.emacs.lisp"
166+ match : " (\\\\ )."
167+ captures :
168+ 1 : name : " punctuation.definition.backslash.emacs.lisp"
169+ }]
140170
141171
142172 # S-expression
You can’t perform that action at this time.
0 commit comments