{ "name": "Cython", "scopeName": "source.cython", "patterns": [ { "begin": "(^[ \\t]+)?(?=#)", "end": "(?!\\G)", "patterns": [ { "name": "comment.line.number-sign.cython", "begin": "#", "end": "\\n", "beginCaptures": { "0": { "name": "punctuation.definition.comment.cython" } } } ], "beginCaptures": { "1": { "name": "punctuation.whitespace.comment.leading.cython" } } }, { "name": "constant.numeric.integer.long.hexadecimal.cython", "match": "\\b(?i:(0x[0-9A-Fa-f]*)L)" }, { "name": "constant.numeric.integer.hexadecimal.cython", "match": "\\b(?i:(0x[0-9A-Fa-f]*))" }, { "name": "constant.numeric.integer.long.octal.cython", "match": "\\b(?i:(0[0-7]+)L)" }, { "name": "constant.numeric.integer.octal.cython", "match": "\\b(0[0-7]+)" }, { "name": "constant.numeric.complex.cython", "match": "\\b(?i:(((\\d+(\\.(?=[^a-zA-Z_])\\d*)?|(?\u003c=[^0-9a-zA-Z_])\\.\\d+)(e[\\-\\+]?\\d+)?))J)" }, { "name": "constant.numeric.float.cython", "match": "\\b(?i:(\\d+\\.\\d*(e[\\-\\+]?\\d+)?))(?=[^a-zA-Z_])" }, { "name": "constant.numeric.float.cython", "match": "(?\u003c=[^0-9a-zA-Z_])(?i:(\\.\\d+(e[\\-\\+]?\\d+)?))" }, { "name": "constant.numeric.float.cython", "match": "\\b(?i:(\\d+e[\\-\\+]?\\d+))" }, { "name": "constant.numeric.integer.long.decimal.cython", "match": "\\b(?i:([1-9]+[0-9]*|0)L)" }, { "name": "constant.numeric.integer.decimal.cython", "match": "\\b([1-9]+[0-9]*|0)" }, { "match": "\\b(global)\\b", "captures": { "1": { "name": "storage.modifier.global.cython" } } }, { "match": "\\b(?:(import|include)|(from))\\b", "captures": { "1": { "name": "keyword.control.import.cython" }, "2": { "name": "keyword.control.import.from.cython" } } }, { "name": "keyword.control.flow.cython", "match": "\\b(elif|else|except|finally|for|if|try|while|with|IF|ELIF|ELSE)\\b" }, { "name": "keyword.control.flow.cython", "match": "\\b(break|continue|pass|raise|return|yield)\\b" }, { "name": "keyword.operator.logical.cython", "match": "\\b(and|in|is|not|or)\\b" }, { "match": "\\b(as|assert|del|exec|print)\\b", "captures": { "1": { "name": "keyword.other.cython" } } }, { "name": "storage.type.cython", "match": "\\b(asm|__asm__|auto|bool|_Bool|char|_Complex|double|enum|float|_Imaginary|int|long|short|signed|struct|typedef|union|unsigned|void)\\b" }, { "name": "keyword.operator.comparison.cython", "match": "\u003c\\=|\u003e\\=|\\=\\=|\u003c|\u003e|\u003c\u003e" }, { "name": "keyword.operator.assignment.augmented.cython", "match": "\\+\\=|-\\=|\\*\\=|/\\=|//\\=|%\\=|\u0026\\=|\\|\\=|\\^\\=|\u003e\u003e\\=|\u003c\u003c\\=|\\*\\*\\=" }, { "name": "keyword.operator.arithmetic.cython", "match": "\\+|\\-|\\*|\\*\\*|/|//|%|\u003c\u003c|\u003e\u003e|\u0026|\\||\\^|~" }, { "name": "keyword.operator.assignment.cython", "match": "\\=" }, { "name": "meta.class.old-style.cython", "contentName": "entity.name.type.class.cython", "begin": "^\\s*(class)\\s+(?=[a-zA-Z_][a-zA-Z_0-9]*\\s*\\:)", "end": "\\s*(:)", "patterns": [ { "include": "#entity_name_class" } ], "beginCaptures": { "1": { "name": "storage.type.class.cython" } }, "endCaptures": { "1": { "name": "punctuation.section.class.begin.cython" } } }, { "name": "meta.property.cython", "contentName": "entity.name.type.property.cython", "begin": "^\\s*(property)\\s+(?=[a-zA-Z_][a-zA-Z_0-9]*\\s*\\:)", "end": "\\s*(:)", "beginCaptures": { "1": { "name": "storage.type.property.cython" } }, "endCaptures": { "1": { "name": "punctuation.section.property.begin.cython" } } }, { "name": "meta.class.cython", "begin": "^\\s*(class)\\s+(?=[a-zA-Z_][a-zA-Z_0-9]*\\s*\\()", "end": "(\\))\\s*(?:(\\:)|(.*$\\n?))", "patterns": [ { "contentName": "entity.name.type.class.cython", "begin": "(?=[A-Za-z_][A-Za-z0-9_]*)", "end": "(?![A-Za-z0-9_])", "patterns": [ { "include": "#entity_name_class" } ] }, { "contentName": "meta.class.inheritance.cython", "begin": "(\\()", "end": "(?=\\)|:)", "patterns": [ { "contentName": "entity.other.inherited-class.cython", "begin": "(?\u003c=\\(|,)\\s*", "end": "\\s*(?:(,)|(?=\\)))", "patterns": [ { "include": "$self" } ], "endCaptures": { "1": { "name": "punctuation.separator.inheritance.cython" } } } ], "beginCaptures": { "1": { "name": "punctuation.definition.inheritance.begin.cython" } } } ], "beginCaptures": { "1": { "name": "storage.type.class.cython" } }, "endCaptures": { "1": { "name": "punctuation.definition.inheritance.end.cython" }, "2": { "name": "punctuation.section.class.begin.cython" }, "3": { "name": "invalid.illegal.missing-section-begin.cython" } } }, { "name": "meta.class.cython", "begin": "^\\s*(class)\\s+(?=[a-zA-Z_][a-zA-Z_0-9])", "end": "(\\()|\\s*($\\n?|#.*$\\n?)", "patterns": [ { "contentName": "entity.name.type.class.cython", "begin": "(?=[A-Za-z_][A-Za-z0-9_]*)", "end": "(?![A-Za-z0-9_])", "patterns": [ { "include": "#entity_name_function" } ] } ], "beginCaptures": { "1": { "name": "storage.type.class.cython" } }, "endCaptures": { "1": { "name": "punctuation.definition.inheritance.begin.cython" }, "2": { "name": "invalid.illegal.missing-inheritance.cython" } } }, { "name": "meta.function.cython", "begin": "^\\s*(def)\\s+(?=[A-Za-z_][A-Za-z0-9_]*\\s*\\()", "end": "(\\))\\s*(?:(\\:)|(.*$\\n?))", "patterns": [ { "contentName": "entity.name.function.cython", "begin": "(?=[A-Za-z_][A-Za-z0-9_]*)", "end": "(?![A-Za-z0-9_])", "patterns": [ { "include": "#entity_name_function" } ] }, { "contentName": "meta.function.parameters.cython", "begin": "(\\()", "end": "(?=\\)\\s*\\:)", "patterns": [ { "include": "#keyword_arguments" }, { "match": "\\b([a-zA-Z_][a-zA-Z_0-9]*)\\s*(?:(,)|(?=[\\n\\)]))", "captures": { "1": { "name": "variable.parameter.function.cython" }, "2": { "name": "punctuation.separator.parameters.cython" } } } ], "beginCaptures": { "1": { "name": "punctuation.definition.parameters.begin.cython" } } } ], "beginCaptures": { "1": { "name": "storage.type.function.cython" } }, "endCaptures": { "1": { "name": "punctuation.definition.parameters.end.cython" }, "2": { "name": "punctuation.section.function.begin.cython" }, "3": { "name": "invalid.illegal.missing-section-begin.cython" } } }, { "name": "meta.function.cython", "begin": "^\\s*(def)\\s+(?=[A-Za-z_][A-Za-z0-9_]*)", "end": "(\\()|\\s*($\\n?|#.*$\\n?)", "patterns": [ { "contentName": "entity.name.function.cython", "begin": "(?=[A-Za-z_][A-Za-z0-9_]*)", "end": "(?![A-Za-z0-9_])", "patterns": [ { "include": "#entity_name_function" } ] } ], "beginCaptures": { "1": { "name": "storage.type.function.cython" } }, "endCaptures": { "1": { "name": "punctuation.definition.parameters.begin.cython" }, "2": { "name": "invalid.illegal.missing-parameters.cython" } } }, { "name": "meta.function.inline.cython", "begin": "(lambda)(?=\\s+)", "end": "(\\:)", "patterns": [ { "contentName": "meta.function.inline.parameters.cython", "begin": "\\s+", "end": "(?=\\:)", "patterns": [ { "include": "#keyword_arguments" }, { "match": "\\b([a-zA-Z_][a-zA-Z_0-9]*)\\s*(?:(,)|(?=[\\n\\)\\:]))", "captures": { "1": { "name": "variable.parameter.function.cython" }, "2": { "name": "punctuation.separator.parameters.cython" } } } ] } ], "beginCaptures": { "1": { "name": "storage.type.function.inline.cython" } }, "endCaptures": { "1": { "name": "punctuation.definition.parameters.end.cython" }, "2": { "name": "punctuation.section.function.begin.cython" }, "3": { "name": "invalid.illegal.missing-section-begin.cython" } } }, { "name": "meta.function.decorator.cython", "begin": "^\\s*(?=@\\s*[A-Za-z_][A-Za-z0-9_]*(?:\\.[a-zA-Z_][a-zA-Z_0-9]*)*\\s*\\()", "end": "(\\))", "patterns": [ { "contentName": "entity.name.function.decorator.cython", "begin": "(?=(@)\\s*[A-Za-z_][A-Za-z0-9_]*(?:\\.[A-Za-z_][A-Za-z0-9_]*)*\\s*\\()", "end": "(?=\\s*\\()", "patterns": [ { "include": "#dotted_name" } ], "beginCaptures": { "1": { "name": "punctuation.definition.decorator.cython" } } }, { "contentName": "meta.function.decorator.arguments.cython", "begin": "(\\()", "end": "(?=\\))", "patterns": [ { "include": "#keyword_arguments" }, { "include": "$self" } ], "beginCaptures": { "1": { "name": "punctuation.definition.arguments.begin.cython" } } } ], "endCaptures": { "1": { "name": "punctuation.definition.arguments.end.cython" } } }, { "name": "meta.function.decorator.cython", "contentName": "entity.name.function.decorator.cython", "begin": "^\\s*(?=@\\s*[A-Za-z_][A-Za-z0-9_]*(?:\\.[a-zA-Z_][a-zA-Z_0-9]*)*)", "end": "(?=\\s|$\\n?|#)", "patterns": [ { "begin": "(?=(@)\\s*[A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)*)", "end": "(?=\\s|$\\n?|#)", "patterns": [ { "include": "#dotted_name" } ], "beginCaptures": { "1": { "name": "punctuation.definition.decorator.cython" } } } ] }, { "name": "meta.function-call.cython", "contentName": "meta.function-call.arguments.cython", "begin": "(?\u003c=\\)|\\])\\s*(\\()", "end": "(\\))", "patterns": [ { "include": "#keyword_arguments" }, { "include": "$self" } ], "beginCaptures": { "1": { "name": "punctuation.definition.arguments.begin.cython" } }, "endCaptures": { "1": { "name": "punctuation.definition.arguments.end.cython" } } }, { "name": "meta.function-call.cython", "begin": "(?=[A-Za-z_][A-Za-z0-9_]*(?:\\.[a-zA-Z_][a-zA-Z_0-9]*)*\\s*\\()", "end": "(\\))", "patterns": [ { "begin": "(?=[A-Za-z_][A-Za-z0-9_]*(?:\\.[A-Za-z_][A-Za-z0-9_]*)*\\s*\\()", "end": "(?=\\s*\\()", "patterns": [ { "include": "#dotted_name" } ] }, { "contentName": "meta.function-call.arguments.cython", "begin": "(\\()", "end": "(?=\\))", "patterns": [ { "include": "#keyword_arguments" }, { "include": "$self" } ], "beginCaptures": { "1": { "name": "punctuation.definition.arguments.begin.cython" } } } ], "endCaptures": { "1": { "name": "punctuation.definition.arguments.end.cython" } } }, { "name": "meta.item-access.cython", "begin": "(?=[A-Za-z_][A-Za-z0-9_]*(?:\\.[a-zA-Z_][a-zA-Z_0-9]*)*\\s*\\[)", "end": "(\\])", "patterns": [ { "begin": "(?=[A-Za-z_][A-Za-z0-9_]*(?:\\.[A-Za-z_][A-Za-z0-9_]*)*\\s*\\[)", "end": "(?=\\s*\\[)", "patterns": [ { "include": "#dotted_name" } ] }, { "contentName": "meta.item-access.arguments.cython", "begin": "(\\[)", "end": "(?=\\])", "patterns": [ { "include": "$self" } ], "beginCaptures": { "1": { "name": "punctuation.definition.arguments.begin.cython" } } } ], "endCaptures": { "1": { "name": "punctuation.definition.arguments.end.cython" } } }, { "name": "meta.item-access.cython", "contentName": "meta.item-access.arguments.cython", "begin": "(?\u003c=\\)|\\])\\s*(\\[)", "end": "(\\])", "patterns": [ { "include": "$self" } ], "beginCaptures": { "1": { "name": "punctuation.definition.arguments.begin.cython" } }, "endCaptures": { "1": { "name": "punctuation.definition.arguments.end.cython" } } }, { "match": "\\b(def|lambda)\\b", "captures": { "1": { "name": "storage.type.function.cython" } } }, { "match": "\\b(class)\\b", "captures": { "1": { "name": "storage.type.class.cython" } } }, { "include": "#line_continuation" }, { "include": "#language_variables" }, { "name": "constant.language.cython", "match": "\\b(None|True|False|Ellipsis|NotImplemented|NULL)\\b" }, { "include": "#string_quoted_single" }, { "include": "#string_quoted_double" }, { "include": "#dotted_name" }, { "begin": "(\\()", "end": "(\\))", "patterns": [ { "include": "$self" } ] }, { "match": "(\\[)(\\s*(\\]))\\b", "captures": { "1": { "name": "punctuation.definition.list.begin.cython" }, "2": { "name": "meta.empty-list.cython" }, "3": { "name": "punctuation.definition.list.end.cython" } } }, { "name": "meta.structure.list.cython", "begin": "(\\[)", "end": "(\\])", "patterns": [ { "contentName": "meta.structure.list.item.cython", "begin": "(?\u003c=\\[|\\,)\\s*(?![\\],])", "end": "\\s*(?:(,)|(?=\\]))", "patterns": [ { "include": "$self" } ], "endCaptures": { "1": { "name": "punctuation.separator.list.cython" } } } ], "beginCaptures": { "1": { "name": "punctuation.definition.list.begin.cython" } }, "endCaptures": { "1": { "name": "punctuation.definition.list.end.cython" } } }, { "name": "meta.structure.tuple.cython", "match": "(\\()(\\s*(\\)))", "captures": { "1": { "name": "punctuation.definition.tuple.begin.cython" }, "2": { "name": "meta.empty-tuple.cython" }, "3": { "name": "punctuation.definition.tuple.end.cython" } } }, { "name": "meta.structure.dictionary.cython", "match": "(\\{)(\\s*(\\}))", "captures": { "1": { "name": "punctuation.definition.dictionary.begin.cython" }, "2": { "name": "meta.empty-dictionary.cython" }, "3": { "name": "punctuation.definition.dictionary.end.cython" } } }, { "name": "meta.structure.dictionary.cython", "begin": "(\\{)", "end": "(\\})", "patterns": [ { "contentName": "meta.structure.dictionary.key.cython", "begin": "(?\u003c=\\{|\\,|^)\\s*(?![\\},])", "end": "\\s*(?:(?=\\})|(\\:))", "patterns": [ { "include": "$self" } ], "endCaptures": { "1": { "name": "punctuation.separator.valuepair.dictionary.cython" } } }, { "contentName": "meta.structure.dictionary.value.cython", "begin": "(?\u003c=\\:|^)\\s*", "end": "\\s*(?:(?=\\})|(,))", "patterns": [ { "include": "$self" } ], "endCaptures": { "1": { "name": "punctuation.separator.dictionary.cython" } } } ], "beginCaptures": { "1": { "name": "punctuation.definition.dictionary.begin.cython" } }, "endCaptures": { "1": { "name": "punctuation.definition.dictionary.end.cython" } } } ], "repository": { "builtin_exceptions": { "name": "support.type.exception.cython", "match": "(?x)\\b((Arithmetic|Assertion|Attribute|EOF|Environment|FloatingPoint|IO|Import|Indentation|Index|Key|Lookup|Memory|Name|OS|Overflow|NotImplemented|Reference|Runtime|Standard|Syntax|System|Tab|Type|UnboundLocal|Unicode(Translate|Encode|Decode)?|Value|ZeroDivision)Error|(Deprecation|Future|Overflow|PendingDeprecation|Runtime|Syntax|User)?Warning|KeyboardInterrupt|NotImplemented|StopIteration|SystemExit|(Base)?Exception)\\b" }, "builtin_functions": { "name": "support.function.builtin.cython", "match": "(?x)\\b(\n __import__|all|abs|any|apply|callable|chr|cmp|coerce|compile|delattr|dir|\n divmod|eval|execfile|filter|getattr|globals|hasattr|hash|hex|id|\n input|intern|isinstance|issubclass|iter|len|locals|map|max|min|oct|\n ord|pow|range|raw_input|reduce|reload|repr|round|setattr|sorted|\n sum|unichr|vars|zip\n\t\t\t)\\b" }, "builtin_types": { "name": "support.type.cython", "match": "(?x)\\b(\n\t\t\t\tbasestring|bool|buffer|classmethod|complex|dict|enumerate|file|\n\t\t\t\tfloat|frozenset|int|list|long|object|open|reversed|set|\n\t\t\t\tslice|staticmethod|str|super|tuple|type|unicode|xrange\n\t\t\t)\\b" }, "constant_placeholder": { "name": "constant.other.placeholder.cython", "match": "(?i:%(\\([a-z_]+\\))?#?0?\\-?[ ]?\\+?([0-9]*|\\*)(\\.([0-9]*|\\*))?[hL]?[a-z%])" }, "docstrings": { "patterns": [ { "name": "comment.block.cython", "begin": "^\\s*(?=[uU]?[rR]?\"\"\")", "end": "(?\u003c=\"\"\")", "patterns": [ { "include": "#string_quoted_double" } ] }, { "name": "comment.block.cython", "begin": "^\\s*(?=[uU]?[rR]?''')", "end": "(?\u003c=''')", "patterns": [ { "include": "#string_quoted_single" } ] } ] }, "dotted_name": { "begin": "(?=[A-Za-z_][A-Za-z0-9_]*(?:\\.[A-Za-z_][A-Za-z0-9_]*)*)", "end": "(?![A-Za-z0-9_\\.])", "patterns": [ { "begin": "(\\.)(?=[A-Za-z_][A-Za-z0-9_]*)", "end": "(?![A-Za-z0-9_])", "patterns": [ { "include": "#magic_function_names" }, { "include": "#magic_variable_names" }, { "include": "#illegal_names" }, { "include": "#generic_names" } ] }, { "begin": "(?\u003c!\\.)(?=[A-Za-z_][A-Za-z0-9_]*)", "end": "(?![A-Za-z0-9_])", "patterns": [ { "include": "#builtin_functions" }, { "include": "#builtin_types" }, { "include": "#builtin_exceptions" }, { "include": "#illegal_names" }, { "include": "#magic_function_names" }, { "include": "#magic_variable_names" }, { "include": "#language_variables" }, { "include": "#generic_names" } ] } ] }, "entity_name_class": { "patterns": [ { "include": "#illegal_names" }, { "include": "#generic_names" } ] }, "entity_name_function": { "patterns": [ { "include": "#magic_function_names" }, { "include": "#illegal_names" }, { "include": "#generic_names" } ] }, "escaped_char": { "match": "(\\\\x[0-9A-F]{2})|(\\\\[0-7]{3})|(\\\\\\n)|(\\\\\\\\)|(\\\\\\\")|(\\\\')|(\\\\a)|(\\\\b)|(\\\\f)|(\\\\n)|(\\\\r)|(\\\\t)|(\\\\v)", "captures": { "1": { "name": "constant.character.escape.hex.cython" }, "10": { "name": "constant.character.escape.linefeed.cython" }, "11": { "name": "constant.character.escape.return.cython" }, "12": { "name": "constant.character.escape.tab.cython" }, "13": { "name": "constant.character.escape.vertical-tab.cython" }, "2": { "name": "constant.character.escape.octal.cython" }, "3": { "name": "constant.character.escape.newline.cython" }, "4": { "name": "constant.character.escape.backlash.cython" }, "5": { "name": "constant.character.escape.double-quote.cython" }, "6": { "name": "constant.character.escape.single-quote.cython" }, "7": { "name": "constant.character.escape.bell.cython" }, "8": { "name": "constant.character.escape.backspace.cython" }, "9": { "name": "constant.character.escape.formfeed.cython" } } }, "escaped_unicode_char": { "match": "(\\\\U[0-9A-Fa-f]{8})|(\\\\u[0-9A-Fa-f]{4})|(\\\\N\\{[a-zA-Z ]+\\})", "captures": { "1": { "name": "constant.character.escape.unicode.16-bit-hex.cython" }, "2": { "name": "constant.character.escape.unicode.32-bit-hex.cython" }, "3": { "name": "constant.character.escape.unicode.name.cython" } } }, "function_name": { "patterns": [ { "include": "#magic_function_names" }, { "include": "#magic_variable_names" }, { "include": "#builtin_exceptions" }, { "include": "#builtin_functions" }, { "include": "#builtin_types" }, { "include": "#generic_names" } ] }, "generic_names": { "match": "[A-Za-z_][A-Za-z0-9_]*" }, "illegal_names": { "name": "invalid.illegal.name.cython", "match": "\\b(and|as|assert|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|not|or|pass|print|raise|return|try|while|with|yield)\\b" }, "keyword_arguments": { "begin": "\\b([a-zA-Z_][a-zA-Z_0-9]*)\\s*(=)(?!=)", "end": "\\s*(?:(,)|(?=$\\n?|[\\)\\:]))", "patterns": [ { "include": "$self" } ], "beginCaptures": { "1": { "name": "variable.parameter.function.cython" }, "2": { "name": "keyword.operator.assignment.cython" } }, "endCaptures": { "1": { "name": "punctuation.separator.parameters.cython" } } }, "language_variables": { "name": "variable.language.cython", "match": "\\b(self|cls)\\b" }, "line_continuation": { "match": "(\\\\)(.*)$\\n?", "captures": { "1": { "name": "punctuation.separator.continuation.line.cython" }, "2": { "name": "invalid.illegal.unexpected-text.cython" } } }, "magic_function_names": { "name": "support.function.magic.cython", "match": "(?x)\\b(__(?:\n\t\t\t\t\t\tabs|add|and|call|cmp|coerce|complex|contains|del|delattr|\n\t\t\t\t\t\tdelete|delitem|delslice|div|divmod|enter|eq|exit|float|\n\t\t\t\t\t\tfloordiv|ge|get|getattr|getattribute|getitem|getslice|gt|\n\t\t\t\t\t\thash|hex|iadd|iand|idiv|ifloordiv|ilshift|imod|imul|init|\n\t\t\t\t\t\tint|invert|ior|ipow|irshift|isub|iter|itruediv|ixor|le|len|\n\t\t\t\t\t\tlong|lshift|lt|mod|mul|ne|neg|new|nonzero|oct|or|pos|pow|\n\t\t\t\t\t\tradd|rand|rdiv|rdivmod|repr|rfloordiv|rlshift|rmod|rmul|ror|\n\t\t\t\t\t\trpow|rrshift|rshift|rsub|rtruediv|rxor|set|setattr|setitem|\n\t\t\t\t\t\tsetslice|str|sub|truediv|unicode|xor\n\t\t\t\t\t)__)\\b" }, "magic_variable_names": { "name": "support.variable.magic.cython", "match": "\\b__(all|bases|class|debug|dict|doc|file|members|metaclass|methods|name|slots|weakref)__\\b" }, "regular_expressions": { "patterns": [ { "include": "source.regexp.python" } ] }, "string_quoted_double": { "patterns": [ { "name": "string.quoted.double.block.unicode-raw-regex.cython", "begin": "([uU]r)(\"\"\")", "end": "((?\u003c=\"\"\")(\")\"\"|\"\"\")", "patterns": [ { "include": "#constant_placeholder" }, { "include": "#escaped_unicode_char" }, { "include": "#escaped_char" }, { "include": "#regular_expressions" } ], "beginCaptures": { "1": { "name": "storage.type.string.cython" }, "2": { "name": "punctuation.definition.string.begin.cython" } }, "endCaptures": { "1": { "name": "punctuation.definition.string.end.cython" }, "2": { "name": "meta.empty-string.double.cython" } } }, { "name": "string.quoted.double.block.unicode-raw.cython", "begin": "([uU]R)(\"\"\")", "end": "((?\u003c=\"\"\")(\")\"\"|\"\"\")", "patterns": [ { "include": "#constant_placeholder" }, { "include": "#escaped_unicode_char" }, { "include": "#escaped_char" } ], "beginCaptures": { "1": { "name": "storage.type.string.cython" }, "2": { "name": "punctuation.definition.string.begin.cython" } }, "endCaptures": { "1": { "name": "punctuation.definition.string.end.cython" }, "2": { "name": "meta.empty-string.double.cython" } } }, { "name": "string.quoted.double.block.raw-regex.cython", "begin": "(r)(\"\"\")", "end": "((?\u003c=\"\"\")(\")\"\"|\"\"\")", "patterns": [ { "include": "#constant_placeholder" }, { "include": "#escaped_char" }, { "include": "#regular_expressions" } ], "beginCaptures": { "1": { "name": "storage.type.string.cython" }, "2": { "name": "punctuation.definition.string.begin.cython" } }, "endCaptures": { "1": { "name": "punctuation.definition.string.end.cython" }, "2": { "name": "meta.empty-string.double.cython" } } }, { "name": "string.quoted.double.block.raw.cython", "begin": "(R)(\"\"\")", "end": "((?\u003c=\"\"\")(\")\"\"|\"\"\")", "patterns": [ { "include": "#constant_placeholder" }, { "include": "#escaped_char" } ], "beginCaptures": { "1": { "name": "storage.type.string.cython" }, "2": { "name": "punctuation.definition.string.begin.cython" } }, "endCaptures": { "1": { "name": "punctuation.definition.string.end.cython" }, "2": { "name": "meta.empty-string.double.cython" } } }, { "name": "string.quoted.double.block.unicode.cython", "begin": "([uU])(\"\"\")", "end": "((?\u003c=\"\"\")(\")\"\"|\"\"\")", "patterns": [ { "include": "#constant_placeholder" }, { "include": "#escaped_unicode_char" }, { "include": "#escaped_char" } ], "beginCaptures": { "1": { "name": "storage.type.string.cython" }, "2": { "name": "punctuation.definition.string.begin.cython" } }, "endCaptures": { "1": { "name": "punctuation.definition.string.end.cython" }, "2": { "name": "meta.empty-string.double.cython" } } }, { "name": "string.quoted.double.single-line.unicode-raw-regex.cython", "begin": "([uU]r)(\")", "end": "((?\u003c=\")(\")|\")|(\\n)", "patterns": [ { "include": "#constant_placeholder" }, { "include": "#escaped_unicode_char" }, { "include": "#escaped_char" }, { "include": "#regular_expressions" } ], "beginCaptures": { "1": { "name": "storage.type.string.cython" }, "2": { "name": "punctuation.definition.string.begin.cython" } }, "endCaptures": { "1": { "name": "punctuation.definition.string.end.cython" }, "2": { "name": "meta.empty-string.double.cython" }, "3": { "name": "invalid.illegal.unclosed-string.cython" } } }, { "name": "string.quoted.double.single-line.unicode-raw.cython", "begin": "([uU]R)(\")", "end": "((?\u003c=\")(\")|\")|(\\n)", "patterns": [ { "include": "#constant_placeholder" }, { "include": "#escaped_unicode_char" }, { "include": "#escaped_char" } ], "beginCaptures": { "1": { "name": "storage.type.string.cython" }, "2": { "name": "punctuation.definition.string.begin.cython" } }, "endCaptures": { "1": { "name": "punctuation.definition.string.end.cython" }, "2": { "name": "meta.empty-string.double.cython" }, "3": { "name": "invalid.illegal.unclosed-string.cython" } } }, { "name": "string.quoted.double.single-line.raw-regex.cython", "begin": "(r)(\")", "end": "((?\u003c=\")(\")|\")|(\\n)", "patterns": [ { "include": "#constant_placeholder" }, { "include": "#escaped_char" }, { "include": "#regular_expressions" } ], "beginCaptures": { "1": { "name": "storage.type.string.cython" }, "2": { "name": "punctuation.definition.string.begin.cython" } }, "endCaptures": { "1": { "name": "punctuation.definition.string.end.cython" }, "2": { "name": "meta.empty-string.double.cython" }, "3": { "name": "invalid.illegal.unclosed-string.cython" } } }, { "name": "string.quoted.double.single-line.raw.cython", "begin": "(R)(\")", "end": "((?\u003c=\")(\")|\")|(\\n)", "patterns": [ { "include": "#constant_placeholder" }, { "include": "#escaped_char" } ], "beginCaptures": { "1": { "name": "storage.type.string.cython" }, "2": { "name": "punctuation.definition.string.begin.cython" } }, "endCaptures": { "1": { "name": "punctuation.definition.string.end.cython" }, "2": { "name": "meta.empty-string.double.cython" }, "3": { "name": "invalid.illegal.unclosed-string.cython" } } }, { "name": "string.quoted.double.single-line.unicode.cython", "begin": "([uU])(\")", "end": "((?\u003c=\")(\")|\")|(\\n)", "patterns": [ { "include": "#constant_placeholder" }, { "include": "#escaped_unicode_char" }, { "include": "#escaped_char" } ], "beginCaptures": { "1": { "name": "storage.type.string.cython" }, "2": { "name": "punctuation.definition.string.begin.cython" } }, "endCaptures": { "1": { "name": "punctuation.definition.string.end.cython" }, "2": { "name": "meta.empty-string.double.cython" }, "3": { "name": "invalid.illegal.unclosed-string.cython" } } }, { "name": "string.quoted.double.block.sql.cython", "begin": "(\"\"\")(?=\\s*(SELECT|INSERT|UPDATE|DELETE|CREATE|REPLACE|ALTER))", "end": "((?\u003c=\"\"\")(\")\"\"|\"\"\")", "patterns": [ { "include": "#constant_placeholder" }, { "include": "#escaped_char" }, { "include": "source.sql" } ], "beginCaptures": { "1": { "name": "punctuation.definition.string.begin.cython" } }, "endCaptures": { "1": { "name": "punctuation.definition.string.end.cython" }, "2": { "name": "meta.empty-string.double.cython" } } }, { "name": "string.quoted.double.single-line.sql.cython", "begin": "(\")(?=\\s*(SELECT|INSERT|UPDATE|DELETE|CREATE|REPLACE|ALTER))", "end": "((?\u003c=\")(\")|\")|(\\n)", "patterns": [ { "include": "#constant_placeholder" }, { "include": "#escaped_char" }, { "include": "source.sql" } ], "beginCaptures": { "1": { "name": "punctuation.definition.string.begin.cython" } }, "endCaptures": { "1": { "name": "punctuation.definition.string.end.cython" }, "2": { "name": "meta.empty-string.double.cython" }, "3": { "name": "invalid.illegal.unclosed-string.cython" } } }, { "name": "string.quoted.double.block.cython", "begin": "(\"\"\")", "end": "((?\u003c=\"\"\")(\")\"\"|\"\"\")", "patterns": [ { "include": "#constant_placeholder" }, { "include": "#escaped_char" } ], "beginCaptures": { "1": { "name": "punctuation.definition.string.begin.cython" } }, "endCaptures": { "1": { "name": "punctuation.definition.string.end.cython" }, "2": { "name": "meta.empty-string.double.cython" } } }, { "name": "string.quoted.double.single-line.cython", "begin": "(\")", "end": "((?\u003c=\")(\")|\")|(\\n)", "patterns": [ { "include": "#constant_placeholder" }, { "include": "#escaped_char" } ], "beginCaptures": { "1": { "name": "punctuation.definition.string.begin.cython" } }, "endCaptures": { "1": { "name": "punctuation.definition.string.end.cython" }, "2": { "name": "meta.empty-string.double.cython" }, "3": { "name": "invalid.illegal.unclosed-string.cython" } } } ] }, "string_quoted_single": { "patterns": [ { "name": "string.quoted.single.single-line.cython", "match": "(?\u003c!')(')(('))(?!')", "captures": { "1": { "name": "punctuation.definition.string.begin.cython" }, "2": { "name": "punctuation.definition.string.end.cython" }, "3": { "name": "meta.empty-string.single.cython" } } }, { "name": "string.quoted.single.block.unicode-raw-regex.cython", "begin": "([uU]r)(''')", "end": "((?\u003c=''')(')''|''')", "patterns": [ { "include": "#constant_placeholder" }, { "include": "#escaped_unicode_char" }, { "include": "#escaped_char" }, { "include": "#regular_expressions" } ], "beginCaptures": { "1": { "name": "storage.type.string.cython" }, "2": { "name": "punctuation.definition.string.begin.cython" } }, "endCaptures": { "1": { "name": "punctuation.definition.string.end.cython" }, "2": { "name": "meta.empty-string.single.cython" } } }, { "name": "string.quoted.single.block.unicode-raw.cython", "begin": "([uU]R)(''')", "end": "((?\u003c=''')(')''|''')", "patterns": [ { "include": "#constant_placeholder" }, { "include": "#escaped_unicode_char" }, { "include": "#escaped_char" } ], "beginCaptures": { "1": { "name": "storage.type.string.cython" }, "2": { "name": "punctuation.definition.string.begin.cython" } }, "endCaptures": { "1": { "name": "punctuation.definition.string.end.cython" }, "2": { "name": "meta.empty-string.single.cython" } } }, { "name": "string.quoted.single.block.raw-regex.cython", "begin": "(r)(''')", "end": "((?\u003c=''')(')''|''')", "patterns": [ { "include": "#constant_placeholder" }, { "include": "#escaped_char" }, { "include": "#regular_expressions" } ], "beginCaptures": { "1": { "name": "storage.type.string.cython" }, "2": { "name": "punctuation.definition.string.begin.cython" } }, "endCaptures": { "1": { "name": "punctuation.definition.string.end.cython" }, "2": { "name": "meta.empty-string.single.cython" } } }, { "name": "string.quoted.single.block.raw.cython", "begin": "(R)(''')", "end": "((?\u003c=''')(')''|''')", "patterns": [ { "include": "#constant_placeholder" }, { "include": "#escaped_char" } ], "beginCaptures": { "1": { "name": "storage.type.string.cython" }, "2": { "name": "punctuation.definition.string.begin.cython" } }, "endCaptures": { "1": { "name": "punctuation.definition.string.end.cython" }, "2": { "name": "meta.empty-string.single.cython" } } }, { "name": "string.quoted.single.block.unicode.cython", "begin": "([uU])(''')", "end": "((?\u003c=''')(')''|''')", "patterns": [ { "include": "#constant_placeholder" }, { "include": "#escaped_unicode_char" }, { "include": "#escaped_char" } ], "beginCaptures": { "1": { "name": "storage.type.string.cython" }, "2": { "name": "punctuation.definition.string.begin.cython" } }, "endCaptures": { "1": { "name": "punctuation.definition.string.end.cython" }, "2": { "name": "meta.empty-string.single.cython" } } }, { "name": "string.quoted.single.single-line.unicode-raw-regex.cython", "begin": "([uU]r)(')", "end": "(')|(\\n)", "patterns": [ { "include": "#constant_placeholder" }, { "include": "#escaped_unicode_char" }, { "include": "#escaped_char" }, { "include": "#regular_expressions" } ], "beginCaptures": { "1": { "name": "storage.type.string.cython" }, "2": { "name": "punctuation.definition.string.begin.cython" } }, "endCaptures": { "1": { "name": "punctuation.definition.string.end.cython" }, "2": { "name": "invalid.illegal.unclosed-string.cython" } } }, { "name": "string.quoted.single.single-line.unicode-raw.cython", "begin": "([uU]R)(')", "end": "(')|(\\n)", "patterns": [ { "include": "#constant_placeholder" }, { "include": "#escaped_unicode_char" }, { "include": "#escaped_char" } ], "beginCaptures": { "1": { "name": "storage.type.string.cython" }, "2": { "name": "punctuation.definition.string.begin.cython" } }, "endCaptures": { "1": { "name": "punctuation.definition.string.end.cython" }, "2": { "name": "invalid.illegal.unclosed-string.cython" } } }, { "name": "string.quoted.single.single-line.raw-regex.cython", "begin": "(r)(')", "end": "(')|(\\n)", "patterns": [ { "include": "#constant_placeholder" }, { "include": "#escaped_char" }, { "include": "#regular_expressions" } ], "beginCaptures": { "1": { "name": "storage.type.string.cython" }, "2": { "name": "punctuation.definition.string.begin.cython" } }, "endCaptures": { "1": { "name": "punctuation.definition.string.end.cython" }, "2": { "name": "invalid.illegal.unclosed-string.cython" } } }, { "name": "string.quoted.single.single-line.raw.cython", "begin": "(R)(')", "end": "(')|(\\n)", "patterns": [ { "include": "#constant_placeholder" }, { "include": "#escaped_char" } ], "beginCaptures": { "1": { "name": "storage.type.string.cython" }, "2": { "name": "punctuation.definition.string.begin.cython" } }, "endCaptures": { "1": { "name": "punctuation.definition.string.end.cython" }, "2": { "name": "invalid.illegal.unclosed-string.cython" } } }, { "name": "string.quoted.single.single-line.unicode.cython", "begin": "([uU])(')", "end": "(')|(\\n)", "patterns": [ { "include": "#constant_placeholder" }, { "include": "#escaped_unicode_char" }, { "include": "#escaped_char" } ], "beginCaptures": { "1": { "name": "storage.type.string.cython" }, "2": { "name": "punctuation.definition.string.begin.cython" } }, "endCaptures": { "1": { "name": "punctuation.definition.string.end.cython" }, "2": { "name": "invalid.illegal.unclosed-string.cython" } } }, { "name": "string.quoted.single.block.cython", "begin": "(''')(?=\\s*(SELECT|INSERT|UPDATE|DELETE|CREATE|REPLACE|ALTER))", "end": "((?\u003c=''')(')''|''')", "patterns": [ { "include": "#constant_placeholder" }, { "include": "#escaped_char" }, { "include": "source.sql" } ], "beginCaptures": { "1": { "name": "punctuation.definition.string.begin.cython" } }, "endCaptures": { "1": { "name": "punctuation.definition.string.end.cython" }, "2": { "name": "meta.empty-string.single.cython" } } }, { "name": "string.quoted.single.single-line.cython", "begin": "(')(?=\\s*(SELECT|INSERT|UPDATE|DELETE|CREATE|REPLACE|ALTER))", "end": "(')|(\\n)", "patterns": [ { "include": "#constant_placeholder" }, { "include": "#escaped_char" }, { "include": "source.sql" } ], "beginCaptures": { "1": { "name": "punctuation.definition.string.begin.cython" } }, "endCaptures": { "1": { "name": "punctuation.definition.string.end.cython" }, "2": { "name": "invalid.illegal.unclosed-string.cython" } } }, { "name": "string.quoted.single.block.cython", "begin": "(''')", "end": "((?\u003c=''')(')''|''')", "patterns": [ { "include": "#constant_placeholder" }, { "include": "#escaped_char" } ], "beginCaptures": { "1": { "name": "punctuation.definition.string.begin.cython" } }, "endCaptures": { "1": { "name": "punctuation.definition.string.end.cython" }, "2": { "name": "meta.empty-string.single.cython" } } }, { "name": "string.quoted.single.single-line.cython", "begin": "(')", "end": "(')|(\\n)", "patterns": [ { "include": "#constant_placeholder" }, { "include": "#escaped_char" } ], "beginCaptures": { "1": { "name": "punctuation.definition.string.begin.cython" } }, "endCaptures": { "1": { "name": "punctuation.definition.string.end.cython" }, "2": { "name": "invalid.illegal.unclosed-string.cython" } } } ] }, "strings": { "patterns": [ { "include": "#string_quoted_double" }, { "include": "#string_quoted_single" } ] } } }