{ "scopeName": "source.sloth", "patterns": [ { "include": "#comments" }, { "include": "#literals" }, { "include": "#types" }, { "include": "#decorator" } ], "repository": { "literals": { "patterns": [ { "match": "(0x[0-9a-fA-F]+|0b[01]+|0o[0-7]+|\\d+)(\\.\\d+)?", "name": "constant.numeric" }, { "match": "'.'", "name": "constant.character" }, { "match": "\\\\(u.{4}|\\S)", "name": "constant.character.escape" }, { "match": "true|false", "name": "constant.language" }, { "begin": "\"", "end": "\"", "name": "string.quoted.double" }, { "begin": "\\s*(/)(?![/*])(?=(?:[^/\\\\\\[]|\\\\.|\\[([^\\]\\\\]|\\\\.)+\\])+/(?![/*])[gimy]*(?!\\s*[a-zA-Z0-9_$]))", "end": "(?