aboutsummaryrefslogtreecommitdiffstats
path: root/public/prism/prism-vhdl.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/prism/prism-vhdl.js')
-rw-r--r--public/prism/prism-vhdl.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/public/prism/prism-vhdl.js b/public/prism/prism-vhdl.js
index 3ec6bce..6ede816 100644
--- a/public/prism/prism-vhdl.js
+++ b/public/prism/prism-vhdl.js
@@ -11,10 +11,13 @@ Prism.languages.vhdl = {
alias: 'function',
},
string: /"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,
- constant: /\b(?:library|use)\b/i,
+ attribute: {
+ pattern: /\b'\w+/,
+ alias: 'attr-name',
+ },
// support for predefined attributes included
keyword:
- /\b(?:'active|'ascending|'base|'delayed|'driving|'driving_value|'event|'high|'image|'instance_name|'last_active|'last_event|'last_value|'left|'leftof|'length|'low|'path_name|'pos|'pred|'quiet|'range|'reverse_range|'right|'rightof|'simple_name|'stable|'succ|'transaction|'val|'value|access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|wait|when|while|with)\b/i,
+ /\b(?:access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|private|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|view|wait|when|while|with)\b/i,
boolean: /\b(?:false|true)\b/i,
function: /\w+(?=\()/,
// decimal, based, physical, and exponential numbers supported