summaryrefslogtreecommitdiffstats
path: root/public/prism/prism-unrealscript.min.js
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2021-12-30 19:47:21 +0100
committerArmand Philippot <git@armandphilippot.com>2021-12-30 19:47:21 +0100
commita98b5ea6fe8e8cc98a55e0fd793e6e8660ea31c1 (patch)
tree542810ab5aef99150db228bb54fd58303dcb31c7 /public/prism/prism-unrealscript.min.js
parentab355897a12b7bda1089a44de326d41455a0f7a3 (diff)
chore: add prismjs for syntax highlighting
Diffstat (limited to 'public/prism/prism-unrealscript.min.js')
-rw-r--r--public/prism/prism-unrealscript.min.js34
1 files changed, 34 insertions, 0 deletions
diff --git a/public/prism/prism-unrealscript.min.js b/public/prism/prism-unrealscript.min.js
new file mode 100644
index 0000000..35d172e
--- /dev/null
+++ b/public/prism/prism-unrealscript.min.js
@@ -0,0 +1,34 @@
+(Prism.languages.unrealscript = {
+ comment: /\/\/.*|\/\*[\s\S]*?\*\//,
+ string: {
+ pattern: /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,
+ greedy: !0,
+ },
+ category: {
+ pattern: /(\b(?:(?:autoexpand|hide|show)categories|var)\s*\()[^()]+(?=\))/,
+ lookbehind: !0,
+ greedy: !0,
+ alias: 'property',
+ },
+ metadata: {
+ pattern: /(\w\s*)<\s*\w+\s*=[^<>|=\r\n]+(?:\|\s*\w+\s*=[^<>|=\r\n]+)*>/,
+ lookbehind: !0,
+ greedy: !0,
+ inside: { property: /\b\w+(?=\s*=)/, operator: /=/, punctuation: /[<>|]/ },
+ },
+ macro: { pattern: /`\w+/, alias: 'property' },
+ 'class-name': {
+ pattern:
+ /(\b(?:class|enum|extends|interface|state(?:\(\))?|struct|within)\s+)\w+/,
+ lookbehind: !0,
+ },
+ keyword:
+ /\b(?:abstract|actor|array|auto|autoexpandcategories|bool|break|byte|case|class|classgroup|client|coerce|collapsecategories|config|const|continue|default|defaultproperties|delegate|dependson|deprecated|do|dontcollapsecategories|editconst|editinlinenew|else|enum|event|exec|export|extends|final|float|for|forcescriptorder|foreach|function|goto|guid|hidecategories|hidedropdown|if|ignores|implements|inherits|input|int|interface|iterator|latent|local|material|name|native|nativereplication|noexport|nontransient|noteditinlinenew|notplaceable|operator|optional|out|pawn|perobjectconfig|perobjectlocalized|placeable|postoperator|preoperator|private|protected|reliable|replication|return|server|showcategories|simulated|singular|state|static|string|struct|structdefault|structdefaultproperties|switch|texture|transient|travel|unreliable|until|var|vector|while|within)\b/,
+ function: /\b[a-z_]\w*(?=\s*\()/i,
+ boolean: /\b(?:false|true)\b/,
+ number: /\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,
+ operator:
+ />>|<<|--|\+\+|\*\*|[-+*/~!=<>$@]=?|&&?|\|\|?|\^\^?|[?:%]|\b(?:ClockwiseFrom|Cross|Dot)\b/,
+ punctuation: /[()[\]{};,.]/,
+}),
+ (Prism.languages.uc = Prism.languages.uscript = Prism.languages.unrealscript);