Files
docs/node_modules/@shikijs/langs/dist/ara.mjs

6 lines
7.0 KiB
JavaScript
Raw Normal View History

2025-08-27 14:05:33 +08:00
const lang = Object.freeze(JSON.parse("{\"displayName\":\"Ara\",\"fileTypes\":[\"ara\"],\"name\":\"ara\",\"patterns\":[{\"include\":\"#namespace\"},{\"include\":\"#named-arguments\"},{\"include\":\"#comments\"},{\"include\":\"#keywords\"},{\"include\":\"#strings\"},{\"include\":\"#numbers\"},{\"include\":\"#operators\"},{\"include\":\"#type\"},{\"include\":\"#function-call\"}],\"repository\":{\"class-name\":{\"patterns\":[{\"begin\":\"\\\\b(?i)(?<!\\\\$)(?=[\\\\\\\\a-zA-Z_])\",\"end\":\"(?i)([a-z_][a-z_0-9]*)?(?=[^a-z0-9_\\\\\\\\])\\\\b\",\"endCaptures\":{\"1\":{\"name\":\"support.class.ara\"}},\"patterns\":[{\"include\":\"#namespace\"}]}]},\"comments\":{\"patterns\":[{\"begin\":\"/\\\\*\",\"captures\":{\"0\":{\"name\":\"punctuation.definition.comment.ara\"}},\"end\":\"\\\\*/\",\"name\":\"comment.block.ara\"},{\"begin\":\"(^[ \\\\t]+)?(?=//)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.whitespace.comment.leading.ara\"}},\"end\":\"(?!\\\\G)\",\"patterns\":[{\"begin\":\"//\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.comment.ara\"}},\"end\":\"\\\\n\",\"name\":\"comment.line.double-slash.ara\"}]}]},\"function-call\":{\"patterns\":[{\"begin\":\"(?i)(?=\\\\\\\\?[a-z_0-9\\\\\\\\]+\\\\\\\\[a-z_][a-z0-9_]*\\\\s*(\\\\(|(::<)))\",\"end\":\"(?=\\\\s*(\\\\(|(::<)))\",\"patterns\":[{\"include\":\"#user-function-call\"}]},{\"begin\":\"(?i)(\\\\\\\\)?(?=\\\\b[a-z_][a-z_0-9]*\\\\s*(\\\\(|(::<)))\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.separator.inheritance.php\"}},\"end\":\"(?=\\\\s*(\\\\(|(::<)))\",\"patterns\":[{\"include\":\"#user-function-call\"}]}]},\"interpolation\":{\"patterns\":[{\"match\":\"\\\\\\\\[0-7]{1,3}\",\"name\":\"constant.numeric.octal.ara\"},{\"match\":\"\\\\\\\\x[0-9A-Fa-f]{1,2}\",\"name\":\"constant.numeric.hex.ara\"},{\"match\":\"\\\\\\\\[nrt\\\\\\\\\\\\$\\\\\\\"]\",\"name\":\"constant.character.escape.ara\"}]},\"keywords\":{\"patterns\":[{\"match\":\"\\\\b(await|async|concurrently|break|continue|do|else|elseif|for|if|loop|while|foreach|match|return|try|yield|from|catch|finally|default|exit)\\\\b\",\"name\":\"keyword.control.ara\"},{\"match\":\"\\\\b(const|enum|class|interface|trait|namespace|type|case|function|fn)\\\\b\",\"name\":\"storage.decl.ara\"},{\"match\":\"\\\\b(final|abstract|static|readonly|public|private|protected)\\\\b\",\"name\":\"storage.modifier.ara\"},{\"match\":\"\\\\b(as|is|extends|implements|use|where|clone|new)\\\\b\",\"name\":\"keyword.other.ara\"}]},\"named-arguments\":{\"captures\":{\"1\":{\"name\":\"entity.name.variable.parameter.ara\"},\"2\":{\"name\":\"punctuation.separator.colon.ara\"}},\"match\":\"(?i)(?<=^|\\\\(|,)\\\\s*([a-z_\\\\x{7f}-\\\\x{10ffff}][a-z0-9_\\\\x{7f}-\\\\x{10ffff}]*)\\\\s*(:)(?!:)\"},\"namespace\":{\"begin\":\"(?i)((namespace)|[a-z0-9_]+)?(\\\\\\\\)(?=.*?[^a-z_0-9\\\\\\\\])\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.type.namespace.php\"},\"3\":{\"name\":\"punctuation.separator.inheritance.php\"}},\"end\":\"(?i)(?=[a-z0-9_]*[^a-z0-9_\\\\\\\\])\",\"name\":\"support.other.namespace.php\",\"patterns\":[{\"match\":\"(?i)[a-z0-9_]+(?=\\\\\\\\)\",\"name\":\"entity.name.type.namespace.php\"},{\"captures\":{\"1\":{\"name\":\"punctuation.separator.inheritance.php\"}},\"match\":\"(?i)(\\\\\\\\)\"}]},\"numbers\":{\"patterns\":[{\"match\":\"0[xX][0-9a-fA-F]+(?:_[0-9a-fA-F]+)*\",\"name\":\"constant.numeric.hex.ara\"},{\"match\":\"0[bB][01]+(?:_[01]+)*\",\"name\":\"constant.numeric.binary.ara\"},{\"match\":\"0[oO][0-7]+(?:_[0-7]+)*\",\"name\":\"constant.numeric.octal.ara\"},{\"match\":\"0(?:_?[0-7]+)+\",\"name\":\"constant.numeric.octal.ara\"},{\"captures\":{\"1\":{\"name\":\"punctuation.separator.decimal.period.ara\"},\"2\":{\"name\":\"punctuation.separator.decimal.period.ara\"}},\"match\":\"(?:(?:[0-9]+(?:_[0-9]+)*)?(\\\\.)[0-9]+(?:_[0-9]+)*(?:[eE][+-]?[0-9]+(?:_[0-9]+)*)?|[0-9]+(?:_[0-9]+)*(\\\\.)(?:[0-9]+(?:_[0-9]+)*)?(?:[eE][+-]?[0-9]+(?:_[0-9]+)*)?|[0-9]+(?:_[0-9]+)*[eE][+-]?[0-9]+(?:_[0-9]+)*)\",\"name\":\"constant.numeric.decimal.ara\"},{\"match\":\"0|[1-9](?:_?[0-9]+)*\",\"name\":\"constant.numeric.decimal.ara\"}]},\"operators\":{\"
export default [
lang
]