Changeset 822e4e5


Ignore:
Timestamp:
Mar 31, 2020, 3:31:16 PM (4 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
34d41ad
Parents:
622b8ac
Message:

Added more support for more constants in vscode highlighting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/vscode/uwaterloo.cforall-0.1.0/syntaxes/cfa.tmLanguage.json

    r622b8ac r822e4e5  
    230230                                {"include": "#constant.pointer"},
    231231                                {"include": "#constant.number"},
    232                                 {"include": "#constant.string"}
     232                                {"include": "#constant.string.single"},
     233                                {"include": "#constant.string.double"},
     234                                {"include": "#constant.endline"}
    233235                        ],
    234236                        "repository": {
     
    248250                                                {"name": "constant.language.decimal.cfa", "match": "\\b[\\d][_\\d\\.e\\+]*p"}
    249251                                        ]
     252                                },
     253                                "constant.string.content": {
     254                                        "patterns": [
     255                                                { "name": "constant.character.escape.cfa" , "match": "\\\\."},
     256                                                { "name": "constant.other.placeholder.cfa", "match": "%\\+?(\\.(\\d+|\\*))?(hh|h|ll|l|j|z|t|L)?[diuoxXfFeEgGaAcspn%]"}
     257                                        ]
     258                                },
     259                                "constant.string.double": {
     260                                        "name": "string.quoted.double.cfa",
     261                                        "begin": "\"",
     262                                        "end": "\"",
     263                                        "beginCaptures": {
     264                                                "0": { "name": "punctuation.definition.string.begin.cfa" }
     265                                        },
     266                                        "endCaptures": {
     267                                                "0": { "name": "punctuation.definition.string.end.cfa" }
     268                                        },
     269                                        "patterns": [
     270                                                { "include": "#constant.string.content"}
     271                                        ]
     272                                },
     273                                "constant.string.single": {
     274                                        "name": "string.quoted.single.cfa",
     275                                        "begin": "'",
     276                                        "end": "'",
     277                                        "beginCaptures": { "0": { "name": "punctuation.definition.string.begin.cfa" } },
     278                                        "endCaptures"  : { "0": { "name": "punctuation.definition.string.end.cfa"   } },
     279                                        "patterns": [
     280                                                { "include": "#constant.string.content"}
     281                                        ]
     282                                },
     283                                "constant.endline": {
     284                                        "name": "constant.character.escape.line-continuation.cfa",
     285                                        "match": "\\\\\\s*(//.*)?"
    250286                                }
    251287                        }
Note: See TracChangeset for help on using the changeset viewer.