{ "name": "Csound Score", "scopeName": "source.csound-score", "fileTypes": [ "sco" ], "patterns": [ { "include": "source.csound#preprocessorDirectives" }, { "include": "source.csound#commentsAndMacroUses" }, { "name": "keyword.control.csound-score", "match": "[abCefiqstvxy]" }, { "name": "entity.invalid.illegal.csound-score", "match": "w" }, { "name": "constant.numeric.language.csound-score", "match": "z" }, { "name": "meta.p-symbol.csound-score", "match": "([nNpP][pP])(\\d+)", "captures": { "1": { "name": "keyword.control.csound-score" }, "2": { "name": "constant.numeric.integer.decimal.csound-score" } } }, { "begin": "(m)|(n)", "end": "\\n", "beginCaptures": { "1": { "name": "keyword.mark.preprocessor.csound-score" }, "2": { "name": "keyword.repeat-mark.preprocessor.csound-score" } }, "patterns": [ { "include": "source.csound#comments" }, { "name": "entity.name.label.csound-score", "match": "[A-Z_a-z]\\w*" } ] }, { "begin": "r\\b", "end": "\\n", "beginCaptures": { "0": { "name": "keyword.repeat-section.preprocessor.csound-score" } }, "patterns": [ { "include": "source.csound#comments" }, { "begin": "\\d+", "end": "(?=\\n)", "beginCaptures": { "0": { "name": "constant.numeric.integer.decimal.csound-score" } }, "patterns": [ { "include": "source.csound#comments" }, { "include": "source.csound#macroNames" } ] } ] }, { "include": "source.csound#numbers" }, { "name": "keyword.operator.csound-score", "match": "[!+\\-*/^%&|<>#~.]" }, { "name": "string.quoted.csound-score", "begin": "\"", "end": "\"", "beginCaptures": { "0": { "name": "punctuation.definition.string.begin.csound-score" } }, "endCaptures": { "0": { "name": "punctuation.definition.string.end.csound-score" } }, "patterns": [ { "include": "source.csound#macroUses" } ] }, { "name": "meta.braced-loop.csound-score", "begin": "\\{", "end": "\\}", "beginCaptures": { "0": { "name": "punctuation.csound-score" } }, "endCaptures": { "0": { "name": "punctuation.csound-score" } }, "patterns": [ { "name": "meta.braced-loop-details.csound-score", "begin": "\\d+", "end": "(?=\\})", "beginCaptures": { "0": { "name": "constant.numeric.integer.decimal.csound-score" } }, "patterns": [ { "name": "meta.braced-loop-macro-name.csound-score", "begin": "(?:([A-Z_a-z]\\w*)|(\\d+\\w*))\\b", "end": "(?=\\})", "beginCaptures": { "1": { "name": "entity.name.function.preprocessor.csound-score" }, "2": { "name": "entity.invalid.illegal.preprocessor.csound-score" } }, "patterns": [ { "include": "$self" } ] }, { "include": "#comments" } ] }, { "include": "#comments" } ] } ] }