Skip to content

Commit

Permalink
chore: update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
piotr-semenov committed Apr 29, 2024
1 parent c317772 commit 6755b54
Show file tree
Hide file tree
Showing 6 changed files with 233 additions and 74 deletions.
4 changes: 2 additions & 2 deletions src/functions.YAML-tmLanguage.j2
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ repository:
user-defined:
patterns:
-
match: '([[:alpha:]][[:alnum:]_]*)\b\s*(\(|\(\s*\{|\{\s*\()'
match: '([[:alpha:]][[:alnum:]_]*)\b(?=\s*\(|\(\s*\{|\{\s*\()'
captures:
1:
name: entity.name.function.user.parigp

-
match: '([[:alpha:]][[:alnum:]_]*)\b\s*=\s*\{?\s*(\([^\(]+\)|[[:alpha:]][[:alnum:]_]*)\s*-\s*>'
match: '([[:alpha:]][[:alnum:]_]*)\b(?=\s*=\s*\{?\s*(\([^\(]+\)|[[:alpha:]][[:alnum:]_]*)\s*-\s*>)'
captures:
1:
name: entity.name.function.user.lambda.parigp
2 changes: 1 addition & 1 deletion src/literals.YAML-tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ repository:
match: '\b(0(b|B)[0-1]*)\b'
name: constant.numeric.bin.parigp
-
match: '\b([0-9]*\.[0-9]*\s*[eE][+-]?[0-9]+)\b'
match: '([0-9]*\.[0-9]*\s*([eE][+-]?[0-9]+)?)\b'
name: constant.numeric.float.parigp
-
match: '\b([0-9]+)\b'
Expand Down
3 changes: 3 additions & 0 deletions src/operators.YAML-tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ repository:
-
match: '(&&|\|\||!\b)'
name: keyword.operator.logical.parigp
-
match: '(\->)'
name: keyword.operator.lambda
-
match: '(<=|>=|<|>)'
name: keyword.operator.comparison.parigp
Expand Down
Loading

0 comments on commit 6755b54

Please sign in to comment.