aboutsummaryrefslogtreecommitdiff
path: root/node_modules/prismjs/components/prism-roboconf.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/prismjs/components/prism-roboconf.js')
-rw-r--r--node_modules/prismjs/components/prism-roboconf.js27
1 files changed, 27 insertions, 0 deletions
diff --git a/node_modules/prismjs/components/prism-roboconf.js b/node_modules/prismjs/components/prism-roboconf.js
new file mode 100644
index 00000000..e52967fe
--- /dev/null
+++ b/node_modules/prismjs/components/prism-roboconf.js
@@ -0,0 +1,27 @@
+Prism.languages.roboconf = {
+ 'comment': /#.*/,
+ 'keyword': {
+ 'pattern': /(^|\s)(?:(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{)|(?:external|import)\b)/,
+ lookbehind: true
+ },
+ 'component': {
+ pattern: /[\w-]+(?=[ \t]*\{)/,
+ alias: 'variable'
+ },
+ 'property': /[\w.-]+(?=[ \t]*:)/,
+ 'value': {
+ pattern: /(=[ \t]*)[^,;]+/,
+ lookbehind: true,
+ alias: 'attr-value'
+ },
+ 'optional': {
+ pattern: /\(optional\)/,
+ alias: 'builtin'
+ },
+ 'wildcard': {
+ pattern: /(\.)\*/,
+ lookbehind: true,
+ alias: 'operator'
+ },
+ 'punctuation': /[{},.;:=]/
+}; \ No newline at end of file