Skip to content

Commit

Permalink
fix: define function grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
hugocaillard committed Dec 20, 2022
1 parent dcc5233 commit 1aeec3c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions Syntaxes/clarity.JSON-tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"name": "meta.define-function",
"patterns": [
{ "include": "#expression" },
{ "include": "#user-func" },
{
"begin": "(?x) (\\() \\s* ([a-zA-Z][a-zA-Z0-9_\\-\\!\\?]*) \\s*",
"end": "(\\))",
Expand Down
1 change: 1 addition & 0 deletions Syntaxes/clarity.YAML-tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ repository:
name: meta.define-function
patterns:
- include: "#expression"
- include: "#user-func"
- begin: (?x) (\() \s* ([a-zA-Z][a-zA-Z0-9_\-\!\?]*) \s*
end: (\))
beginCaptures:
Expand Down
4 changes: 4 additions & 0 deletions Syntaxes/clarity.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@
<key>include</key>
<string>#expression</string>
</dict>
<dict>
<key>include</key>
<string>#user-func</string>
</dict>
<dict>
<key>begin</key>
<string>(?x) (\() \s* ([a-zA-Z][a-zA-Z0-9_\-\!\?]*) \s*</string>
Expand Down

0 comments on commit 1aeec3c

Please sign in to comment.