Skip to content

Commit

Permalink
Merge pull request #34 from ballerina-platform/add-checkpanic-extern
Browse files Browse the repository at this point in the history
Add syntax highlighting for checkpanic and extern
  • Loading branch information
hevayo committed Apr 5, 2019
2 parents 7596eef + a82e945 commit 0414086
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 3 additions & 1 deletion syntaxes/ballerina.YAML-tmLanguage
Expand Up @@ -205,6 +205,8 @@ repository:
patterns:
- include: '#functionParameters'
- include: '#functionReturns'
- name: keyword.ballerina
match: 'extern\b'
- include: '#functionName'
- include: '#callableUnitBody'
- include: '#comment'
Expand Down Expand Up @@ -745,7 +747,7 @@ repository:
match: \b(if|else|iterator|try|catch|finally|fork|join|all|some|while|foreach|in|throw|return|returns|break|timeout|transaction|abort|retry|retries|continue|bind|with|typeof|enum|wait)\b

- name: keyword.other.ballerina
match: \b(import|version|public|private|attach|as|native|documentation|lock|new|record|limit|ascending|descending|check|start|done|untaint|onretry|oncommit|onabort|scope|compensate|compensation|primarykey|channel|abstract|extern|final|listener|remote|client|is|__init)\b
match: \b(import|version|public|private|attach|as|native|documentation|lock|new|record|limit|ascending|descending|check|checkpanic|start|done|untaint|onretry|oncommit|onabort|scope|compensate|compensation|primarykey|channel|abstract|extern|final|listener|remote|client|is|__init)\b

- name: keyword.other.siddhi.ballerina
match: \b(forever|from|on|select|group|by|having|order|where|followed|insert|into|update|set|for|window|query)\b
Expand Down
8 changes: 7 additions & 1 deletion syntaxes/ballerina.tmLanguage
Expand Up @@ -584,6 +584,12 @@
<key>include</key>
<string>#functionReturns</string>
</dict>
<dict>
<key>name</key>
<string>keyword.ballerina</string>
<key>match</key>
<string>extern\b</string>
</dict>
<dict>
<key>include</key>
<string>#functionName</string>
Expand Down Expand Up @@ -2297,7 +2303,7 @@
<key>name</key>
<string>keyword.other.ballerina</string>
<key>match</key>
<string>\b(import|version|public|private|attach|as|native|documentation|lock|new|record|limit|ascending|descending|check|start|done|untaint|onretry|oncommit|onabort|scope|compensate|compensation|primarykey|channel|abstract|extern|final|listener|remote|client|is|__init)\b</string>
<string>\b(import|version|public|private|attach|as|native|documentation|lock|new|record|limit|ascending|descending|check|checkpanic|start|done|untaint|onretry|oncommit|onabort|scope|compensate|compensation|primarykey|channel|abstract|extern|final|listener|remote|client|is|__init)\b</string>
</dict>
<dict>
<key>name</key>
Expand Down

0 comments on commit 0414086

Please sign in to comment.