Skip to content

Commit cdef6cc

Browse files
committed
changes in syntax highlighting, fix for #36
1 parent 2463ac8 commit cdef6cc

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

syntaxes/objectscript.tmLanguage.json

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@
33
"name": "objectscript",
44
"scopeName": "source.objectscript",
55
"patterns": [
6+
{
7+
"match": "^(ROUTINE)\\s(\\b[a-zA-Z0-9]+\\b)",
8+
"captures": {
9+
"1": { "name": "keyword.control" },
10+
"2": { "name": "entity.name.class" }
11+
}
12+
},
613
{
714
"include": "#comments"
815
},
@@ -153,8 +160,12 @@
153160
"elements": {
154161
"patterns": [
155162
{
156-
"match": "^[a-zA-Z0-9]+",
157-
"name": "entity.name.function"
163+
"match": "^([a-zA-Z0-9]+)(\\([^)]*\\))(?:\\s+(public|private))?",
164+
"captures": {
165+
"1": { "name": "entity.name.function" },
166+
"2": { "name": "other" },
167+
"3": { "name": "keyword.other" }
168+
}
158169
},
159170
{
160171
"match": "(?i)(##class)(\\()([^)]+)(\\))",

0 commit comments

Comments
 (0)