-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: support meta-commands + add tests
- Loading branch information
1 parent
7429115
commit 3bb1121
Showing
4 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# yamllint disable rule:line-length | ||
--- | ||
repository: | ||
meta-commands: | ||
patterns: | ||
- | ||
match: '^\s*(##(?!\b)|#(?!\b)|\{{ scopes["support.function"] | join("|\\") }})' | ||
captures: | ||
1: | ||
name: support.function.parigp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
## SYNTAX TEST "source.parigp" "Functions" | ||
|
||
[(x) -> x, 1] | ||
##^ source.parigp meta.brackets.parigp punctuation.section.brackets.begin.parigp | ||
## ^ source.parigp meta.brackets.parigp meta.parens.parigp punctuation.section.parens.begin.parigp | ||
## ^ source.parigp meta.brackets.parigp meta.parens.parigp variable.name.parigp | ||
## ^ source.parigp meta.brackets.parigp meta.parens.parigp punctuation.section.parens.end.parigp | ||
## ^ ^ ^ source.parigp meta.brackets.parigp constant.character.whitespace.parigp | ||
## ^^ source.parigp meta.brackets.parigp keyword.operator.lambda | ||
## ^ source.parigp meta.brackets.parigp variable.name.parigp | ||
## ^ source.parigp meta.brackets.parigp markup.punctuation.separator.parigp | ||
## ^ source.parigp meta.brackets.parigp constant.numeric.int.parigp | ||
## ^ source.parigp meta.brackets.parigp punctuation.section.brackets.end.parigp | ||
|
||
\q | ||
##^^ source.parigp support.function.parigp | ||
|
||
\w "output.txt" | ||
##^^ source.parigp support.function.parigp | ||
## ^ source.parigp constant.character.whitespace.parigp | ||
## ^^^^^^^^^^^^ source.parigp constant.character.escape.parigp |