grammars/source.jolie.json in github-linguist-5.3.3 vs grammars/source.jolie.json in github-linguist-6.0.0
- old
+ new
@@ -1,20 +1,19 @@
{
"name": "Jolie",
- "fileTypes": [
- "ol",
- "iol"
- ],
"scopeName": "source.jolie",
- "foldingStartMarker": "\\{\\s*$",
- "foldingStopMarker": "^\\s*\\}",
"patterns": [
{
"include": "#code"
}
],
"repository": {
+ "block_comments": {
+ "name": "comment.block.jolie",
+ "begin": "/\\*",
+ "end": "\\*/"
+ },
"code": {
"patterns": [
{
"include": "#block_comments"
},
@@ -62,20 +61,10 @@
},
"constants_numeric": {
"name": "constant.numeric.jolie",
"match": "\\b\\d+\\b"
},
- "block_comments": {
- "begin": "/\\*",
- "end": "\\*/",
- "name": "comment.block.jolie"
- },
- "line_comments": {
- "begin": "//",
- "end": "\\n",
- "name": "comment.line.double-slash.jolie"
- },
"definitions": {
"match": "\\b(inputPort|outputPort|interface|type|define|service)\\s+(\\w+)\\b",
"captures": {
"1": {
"name": "keyword.other.jolie"
@@ -83,30 +72,10 @@
"2": {
"name": "meta.class.identifier.jolie"
}
}
},
- "keywords_with_colon": {
- "name": "keyword.other.with_colon.jolie",
- "match": "\\b(Location|Protocol|Interfaces|Aggregates|Redirects|Jolie|JavaScript|Java|OneWay|RequestResponse)\\b\\s*:"
- },
- "keywords_other": {
- "name": "keyword.other.jolie",
- "match": "\\b(constants|cH|instanceof|execution|comp|concurrent|nullProcess|single|sequential|main|init|cset|is_defined|embedded|extender|courier|forward|install|undef|include|synchronized|throws|throw)\\b"
- },
- "keywords_control": {
- "name": "keyword.control.jolie",
- "match": "\\b(if|else|while|for|foreach|provide|until|throw|forward|scope)\\b"
- },
- "keywords_types": {
- "name": "storage.type.jolie",
- "match": "\\b(void|bool|int|string|long|double|any|raw)\\b"
- },
- "keywords_modifiers": {
- "name": "storage.modifiers.jolie",
- "match": "\\b(csets|global)\\b"
- },
"invocations": {
"match": "\\b(\\w+)\\s*(@)\\s*(\\w+)\\b",
"captures": {
"1": {
"name": "meta.method.jolie"
@@ -117,22 +86,47 @@
"3": {
"name": "meta.class.jolie"
}
}
},
+ "keywords_control": {
+ "name": "keyword.control.jolie",
+ "match": "\\b(if|else|while|for|foreach|provide|until|throw|forward|scope)\\b"
+ },
+ "keywords_modifiers": {
+ "name": "storage.modifiers.jolie",
+ "match": "\\b(csets|global)\\b"
+ },
+ "keywords_other": {
+ "name": "keyword.other.jolie",
+ "match": "\\b(constants|cH|instanceof|execution|comp|concurrent|nullProcess|single|sequential|main|init|cset|is_defined|embedded|extender|courier|forward|install|undef|include|synchronized|throws|throw)\\b"
+ },
+ "keywords_types": {
+ "name": "storage.type.jolie",
+ "match": "\\b(void|bool|int|string|long|double|any|raw)\\b"
+ },
+ "keywords_with_colon": {
+ "name": "keyword.other.with_colon.jolie",
+ "match": "\\b(Location|Protocol|Interfaces|Aggregates|Redirects|Jolie|JavaScript|Java|OneWay|RequestResponse)\\b\\s*:"
+ },
+ "line_comments": {
+ "name": "comment.line.double-slash.jolie",
+ "begin": "//",
+ "end": "\\n"
+ },
+ "operators": {
+ "name": "keyword.operator.jolie",
+ "match": "\\b(\u003c\u003c|\u0026\u0026|\\|\\||\\+|\\-|/|\\*|=|==|\\+\\+|--|\\+=|-=|\\*=|/=|!|%|%=)\\b"
+ },
"strings": {
"name": "string.quoted.double.jolie",
"begin": "\"",
"end": "\"",
"patterns": [
{
- "match": "\\\\.",
- "name": "constant.character.escape.jolie"
+ "name": "constant.character.escape.jolie",
+ "match": "\\\\."
}
]
- },
- "operators": {
- "name": "keyword.operator.jolie",
- "match": "\\b(<<|&&|\\|\\||\\+|\\-|/|\\*|=|==|\\+\\+|--|\\+=|-=|\\*=|/=|!|%|%=)\\b"
}
}
-}
\ No newline at end of file
+}