summaryrefslogtreecommitdiffstats
path: root/public/prism/prism-ada.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-ada.js
parentab355897a12b7bda1089a44de326d41455a0f7a3 (diff)
chore: add prismjs for syntax highlighting
Diffstat (limited to 'public/prism/prism-ada.js')
-rw-r--r--public/prism/prism-ada.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/public/prism/prism-ada.js b/public/prism/prism-ada.js
new file mode 100644
index 0000000..78ccd40
--- /dev/null
+++ b/public/prism/prism-ada.js
@@ -0,0 +1,21 @@
+Prism.languages.ada = {
+ comment: /--.*/,
+ string: /"(?:""|[^"\r\f\n])*"/,
+ number: [
+ {
+ pattern:
+ /\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i,
+ },
+ {
+ pattern: /\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i,
+ },
+ ],
+ 'attr-name': /\b'\w+/,
+ keyword:
+ /\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|new|not|null|of|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|return|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,
+ boolean: /\b(?:false|true)\b/i,
+ operator: /<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,
+ punctuation: /\.\.?|[,;():]/,
+ char: /'.'/,
+ variable: /\b[a-z](?:\w)*\b/i,
+};