Allow \<x> in strings where <x> is not "

pull/70/head
Stephan Seitz 2021-11-28 13:19:15 +07:00
parent 9a33a3412f
commit edf257d36b
4 changed files with 1846 additions and 1837 deletions

@ -197,7 +197,7 @@ module.exports = grammar(clojure, {
'"',
repeat(choice(
token.immediate(prec(1, /[^\\~"]+/)),
token.immediate(seq("\\\"")),
token.immediate(seq(/\\./)),
$.format_specifier,
)),
optional('~'),

@ -581,8 +581,8 @@
"type": "SEQ",
"members": [
{
"type": "STRING",
"value": "\\\""
"type": "PATTERN",
"value": "\\\\."
}
]
}

File diff suppressed because it is too large Load Diff

@ -1205,3 +1205,16 @@ loop with 2
(list_lit
(sym_lit)
(sym_lit)))))))
================================================================================
Backslashes in strings
================================================================================
"Returns the arglist of the subform _immediately_ containing
+CURSOR-MARKER+ in `form'. Notice, however, that +CURSOR-MARKER+ may
be in a nested arglist \(e.g. `(WITH-OPEN-FILE (<here>'\), and the
arglist of the appropriate parent form \(WITH-OPEN-FILE\) will be
returned in that case."
--------------------------------------------------------------------------------