Add structure for container and shapes #1

Merged
pleshevskiy merged 12 commits from rewrite-structure into main 2022-12-09 12:36:32 +03:00
1 changed files with 3 additions and 1 deletions
Showing only changes of commit 25adf22f55 - Show all commits

View File

@ -1,5 +1,6 @@
const PREC = {
COMMENT: -2,
UNQUOTED_STRING: 5,
CONTAINER: 9,
CONNECTION: 9,
SHAPE: 11,
@ -252,7 +253,8 @@ module.exports = grammar({
_dot: ($) => seq($.dot),
dot: ($) => token("."),
_unquoted_string: ($) => token(prec(5, /[\w\-?!]([^'"`\n;{}]*[\w\-?!])?/)),
_unquoted_string: ($) =>
token(prec(PREC.UNQUOTED_STRING, /[\w\-?!]([^'"`\n;{}]*[\w\-?!])?/)),
string: ($) =>
choice(