1 line
107 KiB
JSON
1 line
107 KiB
JSON
{"information_for_contributors":["This file has been converted from https://github.com/atom/language-php/blob/master/grammars/php.cson","If you want to provide a fix or improvement, please create a pull request against the original repository.","Once accepted there, we are happy to receive an update request."],"version":"https://github.com/atom/language-php/commit/eb28b8aea1214dcbc732f3d9b9ed20c089c648bd","scopeName":"source.php","patterns":[{"include":"#attribute"},{"include":"#comments"},{"match":"(?i)(?:^|(?<=<\\?php))\\s*(namespace)\\s+([a-z0-9_\\x{7f}-\\x{10ffff}\\\\]+)(?=\\s*;)","name":"meta.namespace.php","captures":{"1":{"name":"keyword.other.namespace.php"},"2":{"name":"entity.name.type.namespace.php","patterns":[{"match":"\\\\","name":"punctuation.separator.inheritance.php"}]}}},{"begin":"(?i)(?:^|(?<=<\\?php))\\s*(namespace)\\s+","beginCaptures":{"1":{"name":"keyword.other.namespace.php"}},"end":"(?<=})|(?=\\?>)","name":"meta.namespace.php","patterns":[{"include":"#comments"},{"match":"(?i)[a-z0-9_\\x{7f}-\\x{10ffff}\\\\]+","name":"entity.name.type.namespace.php","captures":{"0":{"patterns":[{"match":"\\\\","name":"punctuation.separator.inheritance.php"}]}}},{"begin":"{","beginCaptures":{"0":{"name":"punctuation.definition.namespace.begin.bracket.curly.php"}},"end":"}|(?=\\?>)","endCaptures":{"0":{"name":"punctuation.definition.namespace.end.bracket.curly.php"}},"patterns":[{"include":"$self"}]},{"match":"[^\\s]+","name":"invalid.illegal.identifier.php"}]},{"match":"\\s+(?=use\\b)"},{"begin":"(?i)\\buse\\b","beginCaptures":{"0":{"name":"keyword.other.use.php"}},"end":"(?<=})|(?=;)|(?=\\?>)","name":"meta.use.php","patterns":[{"match":"\\b(const|function)\\b","name":"storage.type.${1:/downcase}.php"},{"begin":"{","beginCaptures":{"0":{"name":"punctuation.definition.use.begin.bracket.curly.php"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.use.end.bracket.curly.php"}},"patterns":[{"include":"#scope-resolution"},{"match":"(?xi)\n\\b(as)\n\\s+(final|abstract|public|private|protected|static)\n\\s+([a-z_\\x{7f}-\\x{10ffff}][a-z0-9_\\x{7f}-\\x{10ffff}]*)","captures":{"1":{"name":"keyword.other.use-as.php"},"2":{"name":"storage.modifier.php"},"3":{"name":"entity.other.alias.php"}}},{"match":"(?xi)\n\\b(as)\n\\s+([a-z_\\x{7f}-\\x{10ffff}][a-z0-9_\\x{7f}-\\x{10ffff}]*)","captures":{"1":{"name":"keyword.other.use-as.php"},"2":{"patterns":[{"match":"^(?:final|abstract|public|private|protected|static)$","name":"storage.modifier.php"},{"match":".+","name":"entity.other.alias.php"}]}}},{"match":"(?i)\\b(insteadof)\\s+([a-z_\\x{7f}-\\x{10ffff}][a-z0-9_\\x{7f}-\\x{10ffff}]*)","captures":{"1":{"name":"keyword.other.use-insteadof.php"},"2":{"name":"support.class.php"}}},{"match":";","name":"punctuation.terminator.expression.php"},{"include":"#use-inner"}]},{"include":"#use-inner"}]},{"begin":"(?ix)\n\\b(trait)\\s+([a-z_\\x{7f}-\\x{10ffff}][a-z0-9_\\x{7f}-\\x{10ffff}]*)","beginCaptures":{"1":{"name":"storage.type.trait.php"},"2":{"name":"entity.name.type.trait.php"}},"end":"}|(?=\\?>)","endCaptures":{"0":{"name":"punctuation.definition.trait.end.bracket.curly.php"}},"name":"meta.trait.php","patterns":[{"include":"#comments"},{"begin":"{","beginCaptures":{"0":{"name":"punctuation.definition.trait.begin.bracket.curly.php"}},"end":"(?=}|\\?>)","contentName":"meta.trait.body.php","patterns":[{"include":"$self"}]}]},{"begin":"(?ix)\n\\b(interface)\\s+([a-z_\\x{7f}-\\x{10ffff}][a-z0-9_\\x{7f}-\\x{10ffff}]*)","beginCaptures":{"1":{"name":"storage.type.interface.php"},"2":{"name":"entity.name.type.interface.php"}},"end":"}|(?=\\?>)","endCaptures":{"0":{"name":"punctuation.definition.interface.end.bracket.curly.php"}},"name":"meta.interface.php","patterns":[{"include":"#comments"},{"include":"#interface-extends"},{"begin":"{","beginCaptures":{"0":{"name":"punctuation.definition.interface.begin.bracket.curly.php"}},"end":"(?=}|\\?>)","contentName":"meta.interface.body.php","patterns":[{"include":"#class-constant"},{"include":"$self"}]}]},{"begin":"(?ix)\n\\b(enum)\\s+([a-z_\\x{7f}-\\x{10ffff}][a-z0-9_\\x{7f}-\\x{10ffff}]*)
|