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

9 lines
6.0 KiB
JavaScript
Raw Normal View History

2025-08-27 14:05:33 +08:00
import javascript from './javascript.mjs'
const lang = Object.freeze(JSON.parse("{\"displayName\":\"QML\",\"name\":\"qml\",\"patterns\":[{\"match\":\"\\\\bpragma\\\\s+Singleton\\\\b\",\"name\":\"constant.language.qml\"},{\"include\":\"#import-statements\"},{\"include\":\"#object\"},{\"include\":\"#comment\"}],\"repository\":{\"attributes-dictionary\":{\"patterns\":[{\"include\":\"#typename\"},{\"include\":\"#keywords\"},{\"include\":\"#identifier\"},{\"include\":\"#attributes-value\"},{\"include\":\"#comment\"}]},\"attributes-value\":{\"patterns\":[{\"begin\":\"(?<=\\\\w)\\\\s*\\\\:\\\\s*(?=[A-Z]\\\\w*\\\\s*\\\\{)\",\"description\":\"A QML object as value.\",\"end\":\"(?<=\\\\})\",\"patterns\":[{\"include\":\"#object\"}]},{\"begin\":\"(?<=\\\\w)\\\\s*\\\\:\\\\s*\\\\[\",\"description\":\"A list as value.\",\"end\":\"\\\\](.*)$\",\"endCaptures\":{\"0\":{\"patterns\":[{\"include\":\"source.js\"}]}},\"patterns\":[{\"include\":\"#object\"},{\"include\":\"source.js\"}]},{\"begin\":\"(?<=\\\\w)\\\\s*\\\\:(?=\\\\s*\\\\{?\\\\s*$)\",\"description\":\"A block of JavaScript code as value.\",\"end\":\"(?<=\\\\})\",\"patterns\":[{\"begin\":\"\\\\{\",\"contentName\":\"meta.embedded.block.js\",\"end\":\"\\\\}\",\"patterns\":[{\"include\":\"source.js\"}]}]},{\"begin\":\"(?<=\\\\w)\\\\s*\\\\:\",\"contentName\":\"meta.embedded.line.js\",\"description\":\"A JavaScript expression as value.\",\"end\":\";|$|(?=\\\\})\",\"patterns\":[{\"include\":\"source.js\"}]}]},\"comment\":{\"patterns\":[{\"begin\":\"(\\\\/\\\\/:)\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.class.qml.tr\"}},\"end\":\"$\",\"patterns\":[{\"include\":\"#comment-contents\"}]},{\"begin\":\"(\\\\/\\\\/[~|=])\\\\s*([A-Za-z_$][\\\\w$.\\\\[\\\\]]*)\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.class.qml.tr\"},\"2\":{\"name\":\"variable.other.qml.tr\"}},\"end\":\"$\",\"patterns\":[{\"include\":\"#comment-contents\"}]},{\"begin\":\"(\\\\/\\\\/)\",\"beginCaptures\":{\"1\":{\"name\":\"comment.line.double-slash.qml\"}},\"end\":\"$\",\"patterns\":[{\"include\":\"#comment-contents\"}]},{\"begin\":\"(\\\\/\\\\*)\",\"beginCaptures\":{\"1\":{\"name\":\"comment.line.double-slash.qml\"}},\"end\":\"(\\\\*\\\\/)\",\"endCaptures\":{\"1\":{\"name\":\"comment.line.double-slash.qml\"}},\"patterns\":[{\"include\":\"#comment-contents\"}]}]},\"comment-contents\":{\"patterns\":[{\"match\":\"\\\\b(TODO|DEBUG|XXX)\\\\b\",\"name\":\"constant.language.qml\"},{\"match\":\"\\\\b(BUG|FIXME)\\\\b\",\"name\":\"invalid\"},{\"match\":\".\",\"name\":\"comment.line.double-slash.qml\"}]},\"data-types\":{\"patterns\":[{\"description\":\"QML basic data types.\",\"match\":\"\\\\b(bool|double|enum|int|list|real|string|url|variant|var)\\\\b\",\"name\":\"storage.type.qml\"},{\"description\":\"QML modules basic data types.\",\"match\":\"\\\\b(date|point|rect|size)\\\\b\",\"name\":\"support.type.qml\"}]},\"group-attributes\":{\"patterns\":[{\"begin\":\"\\\\b([_a-zA-Z]\\\\w*)\\\\s*\\\\{\",\"beginCaptures\":{\"1\":{\"name\":\"variable.parameter.qml\"}},\"end\":\"\\\\}\",\"patterns\":[{\"include\":\"$self\"},{\"include\":\"#comment\"},{\"include\":\"#attributes-dictionary\"}]}]},\"identifier\":{\"description\":\"The name of variable, key, signal and etc.\",\"patterns\":[{\"match\":\"\\\\b[_a-zA-Z]\\\\w*\\\\b\",\"name\":\"variable.parameter.qml\"}]},\"import-statements\":{\"patterns\":[{\"begin\":\"\\\\b(import)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.import.qml\"}},\"end\":\"$\",\"patterns\":[{\"match\":\"\\\\bas\\\\b\",\"name\":\"keyword.control.as.qml\"},{\"include\":\"#string\"},{\"description\":\"<Version.Number>\",\"match\":\"\\\\b\\\\d+\\\\.\\\\d+\\\\b\",\"name\":\"constant.numeric.qml\"},{\"description\":\"as <Namespace>\",\"match\":\"(?<=as)\\\\s+[A-Z]\\\\w*\\\\b\",\"name\":\"entity.name.type.qml\"},{\"include\":\"#identifier\"},{\"include\":\"#comment\"}]}]},\"keywords\":{\"patterns\":[{\"include\":\"#data-types\"},{\"include\":\"#reserved-words\"}]},\"method-attributes\":{\"patterns\":[{\"begin\":\"\\\\b(function)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.qml\"}},\"end\":\"(?<=\\\\})\",\"patterns\":[{\"begin\":
export default [
...javascript,
lang
]