grammars/source.abl.json in github-linguist-5.3.3 vs grammars/source.abl.json in github-linguist-6.0.0

- old
+ new

@@ -1,23 +1,17 @@ { "name": "OpenEdge ABL", "scopeName": "source.abl", - "fileTypes": [ - "w", - "p", - "i" - ], - "uuid": "075bb86e-03ea-4fea-bac0-e11b9dc73e03", "patterns": [ { "name": "comment.block.source.abl", "begin": "/\\*", "end": "\\*/(?![^/]*?\\*/)" }, { - "match": "('(?:'|.)*?')", - "name": "string.single.source.abl" + "name": "string.single.source.abl", + "match": "('(?:'|.)*?')" }, { "name": "string.double.source.abl", "match": "\\\"\\\"[a-zA-Z0-9_\\.\\-]+\\\"\\\"" }, @@ -26,25 +20,25 @@ "begin": "(\\\"(?!\\\"[a-zA-Z]+)|\\\"\\\"[a-zA-Z]+)", "end": "\\\"(?!\\\")", "patterns": [ { "name": "constant.character.escape.abl", - "match": "(~(x\\h{2}|[0-2][0-7]{,2}|3[0-6][0-7]|37[0-7]?|[4-7][0-7]?|.)|\\\"\\\")" + "match": "(~(x[[:xdigit:]]{2}|[0-2][0-7]{,2}|3[0-6][0-7]|37[0-7]?|[4-7][0-7]?|.)|\\\"\\\")" } ] }, { "name": "constant.numeric.source.abl", - "match": "(?<!\\w)((0(x|X)[0-9a-fA-F]+)|([0-9]+(\\.[0-9]+)?))" + "match": "(?\u003c!\\w)((0(x|X)[0-9a-fA-F]+)|([0-9]+(\\.[0-9]+)?))" }, { "name": "constant.language.source.abl", "match": "(?i)\\b(true|false|yes|no(?!-))\\b" }, { "name": "keyword.operator.source.abl", - "match": "(?i)(\\b(or|and|not|is)\\b|(=|\\+| - |/|<|>|,|\\.))" + "match": "(?i)(\\b(or|and|not|is)\\b|(=|\\+| - |/|\u003c|\u003e|,|\\.))" }, { "name": "keyword.option.source.abl", "match": "(?i)(\\b(return|function|return(s)?|forward|input|output|like|new|no-undo|no-box|no-labels|(share|no|exclusive)-lock|no-error|format|colon|label|init(ial)?|side-labels|width|primary|use-index)\\b|@)" }, @@ -67,19 +61,19 @@ } } }, { "name": "keyword.control.source.abl", - "match": "(?i)(\\b(if|avail(able)?|down|where|else( if)?|each|first|last|while|find( first|last)?|then( do( transaction)?)?|next|page|quit)\\b|(?<!-)(\\bend\\b(?!\\s+procedure)))" + "match": "(?i)(\\b(if|avail(able)?|down|where|else( if)?|each|first|last|while|find( first|last)?|then( do( transaction)?)?|next|page|quit)\\b|(?\u003c!-)(\\bend\\b(?!\\s+procedure)))" }, { "name": "storage.type.define.abl", "match": "(?i)\\b(def(ine)?\\s+(((new\\s+)?shared\\s+)?(var(iable)?|stream|buffer)|((input|input-output|output)\\s+param(eter)?)|temp-table|query)|form)\\b" }, { "name": "storage.type.source.abl", - "match": "(?i)\\b(?<!&)(char(acter)?|(?<!-)handle|dataset(-handle)?|field|(?<!-)index|log(ical)?|int(eger|64)?|dec(imal)?|stream|temp-table|frame [a-z]+)(?!\\s*\\()\\b" + "match": "(?i)\\b(?\u003c!\u0026)(char(acter)?|(?\u003c!-)handle|dataset(-handle)?|field|(?\u003c!-)index|log(ical)?|int(eger|64)?|dec(imal)?|stream|temp-table|frame [a-z]+)(?!\\s*\\()\\b" }, { "name": "storage.type.function.abl", "match": "(?i)(end (procedure|function))" }, @@ -133,6 +127,6 @@ "name": "support.function.source.abl" } } } ] -} \ No newline at end of file +}