Skip to content

Commit

Permalink
fix: relax string quotes to the limit
Browse files Browse the repository at this point in the history
  • Loading branch information
piotr-semenov committed May 3, 2024
1 parent 22b6d40 commit 1aaa53b
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions src/comments.YAML-tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
repository:
comments:
patterns:
- include: "#inline"
- include: '#inline'
-
begin: '/\*'
beginCaptures:
Expand All @@ -14,7 +14,7 @@ repository:
name: punctuation.definition.comment.end.parigp
name: comment.block.parigp
patterns:
- include: "#comments"
- include: '#comments'
repository:
inline:
patterns:
Expand Down
4 changes: 2 additions & 2 deletions src/functions.YAML-tmLanguage.j2
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ repository:
parens: &parens_rules []
functions:
patterns:
- include: "#builtins"
- include: "#user-defined"
- include: '#builtins'
- include: '#user-defined'

repository:
builtins:
Expand Down
4 changes: 2 additions & 2 deletions src/literals.YAML-tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
repository:
literals:
patterns:
- include: "#numeric"
- include: "#string"
- include: '#numeric'
- include: '#string'

repository:
numeric:
Expand Down
26 changes: 13 additions & 13 deletions src/main.YAML-tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ fileTypes:
- parigp
name: PARI/GP
patterns:
- include: "#comments"
- include: "#code"
- include: '#comments'
- include: '#code'
repository:
parens:
patterns:
Expand All @@ -22,7 +22,7 @@ repository:
name: punctuation.section.parens.end.parigp
name: meta.parens.parigp
patterns:
- include: "#parens"
- include: '#parens'
braces:
patterns:
-
Expand All @@ -36,7 +36,7 @@ repository:
name: punctuation.section.group.end.parigp
name: meta.block.parigp
patterns:
- include: "#code"
- include: '#code'
brackets:
patterns:
-
Expand All @@ -53,21 +53,21 @@ repository:
-
match: '[,;]'
name: markup.punctuation.separator.parigp
- include: "#code"
- include: '#code'
code:
patterns:
- include: "#comments"
- include: '#comments'
-
<<: *parens_rules
patterns:
- include: "#code"
- include: "#braces"
- include: "#brackets"
- include: "#functions"
- include: '#code'
- include: '#braces'
- include: '#brackets'
- include: '#functions'
- include: '#meta-commands'
- include: "#type-hints"
- include: "#literals"
- include: "#operators"
- include: '#type-hints'
- include: '#literals'
- include: '#operators'
- include: '#general'
-
match: "'?\\b[[:alpha:]][[:alnum:]_]*"
Expand Down

0 comments on commit 1aaa53b

Please sign in to comment.