remove invalid string quote

This commit is contained in:
Dmitriy Pleshevskiy 2022-12-09 22:31:39 +03:00
parent 8b2a240f22
commit 3c622036f6
Signed by: pleshevskiy
GPG Key ID: 1B59187B161C0215
2 changed files with 2 additions and 3 deletions

View File

@ -285,8 +285,7 @@ module.exports = grammar({
string: ($) => string: ($) =>
choice( choice(
seq("'", repeat(token.immediate(/[^'\n]+/)), "'"), seq("'", repeat(token.immediate(/[^'\n]+/)), "'"),
seq('"', repeat(token.immediate(/[^"\n]+/)), '"'), seq('"', repeat(token.immediate(/[^"\n]+/)), '"')
seq("`", repeat(token.immediate(/[^`\n]+/)), "`")
), ),
boolean: ($) => choice("true", "false"), boolean: ($) => choice("true", "false"),

View File

@ -41,7 +41,7 @@
"`|" "`|"
] @punctuation.bracket ] @punctuation.bracket
; Special (nvim-treesitter overwrite previous rules) ; Special
;------------------------------------------------------------------------------- ;-------------------------------------------------------------------------------
(ERROR) @error (ERROR) @error