Skip to content

Commit

Permalink
fix: closes #2
Browse files Browse the repository at this point in the history
  • Loading branch information
piotr-semenov committed May 15, 2024
1 parent 69c73bb commit 0205e2f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/operators.YAML-tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,9 @@ repository:
match: "(\\')(?!\\b)"
name: keyword.operator.derivative.parigp
-
match: '(\#)\b\s*(?!$)'
name: keyword.operator.cardinality.parigp
match: '(\#)(\s*)(?!$)'
captures:
1:
name: keyword.operator.cardinality.parigp
2:
name: constant.character.whitespace.parigp
9 changes: 9 additions & 0 deletions tests/operators.test.gp
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,12 @@
## ^^ source.parigp keyword.operator.shift.parigp
## ^ source.parigp constant.numeric.int.parigp
## ^ source.parigp markup.punctuation.statement-terminator.parigp

# [1, 2, 3]
##^ source.parigp keyword.operator.cardinality.parigp
## ^ source.parigp constant.character.whitespace.parigp
## ^ source.parigp meta.brackets.parigp punctuation.section.brackets.begin.parigp
## ^ ^ ^ source.parigp meta.brackets.parigp constant.numeric.int.parigp
## ^ ^ source.parigp meta.brackets.parigp markup.punctuation.separator.parigp
## ^ ^ source.parigp meta.brackets.parigp constant.character.whitespace.parigp
## ^ source.parigp meta.brackets.parigp punctuation.section.brackets.end.parigp

0 comments on commit 0205e2f

Please sign in to comment.