Skip to content

Commit

Permalink
fix: improve EEA syntax highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
sebthom committed Jun 7, 2024
1 parent 7ca4fbc commit 2f634bb
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions plugin/syntaxes/eea/eea.tmLanguage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ repository:
1: { name: entity.name.function.eea } # ([a-zA-Z_][a-zA-Z_\d]*)
3: { name: comment.line.eea }

# type reference in signature
# object array and type reference in signature
- match: (\[?)([01]?)(L)([01]?)(([a-zA-Z_$][a-zA-Z\d_$]*/)*[a-zA-Z_$][a-zA-Z\d_$]*)
captures:
1: { name: punctuation.eea } # (\[?)
Expand All @@ -53,8 +53,14 @@ repository:
#6: { name: entity.name.class.eea } # ([a-zA-Z_$][a-zA-Z\d_$]*/)*
7: { name: punctuation.eea } # ([;<])

# scalar array type reference in signature
- match: (\[)([01])[BCDFIJVZ]
captures:
1: { name: punctuation.eea } # (\[)
2: { name: constant.numeric.eea } # ([01])

# signature comment
- match: '[;BDFIVZ>]\s+(.+)$'
- match: '[;BCDFIJVZ>]\s+(.+)$'
captures:
1: { name: comment.line.eea }

Expand Down

0 comments on commit 2f634bb

Please sign in to comment.