source: node_modules/refractor/lang/ada.js@ d24f17c

main
Last change on this file since d24f17c was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 1.1 KB
Line 
1'use strict'
2
3module.exports = ada
4ada.displayName = 'ada'
5ada.aliases = []
6function ada(Prism) {
7 Prism.languages.ada = {
8 comment: /--.*/,
9 string: /"(?:""|[^"\r\f\n])*"/,
10 number: [
11 {
12 pattern:
13 /\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i
14 },
15 {
16 pattern: /\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i
17 }
18 ],
19 'attr-name': /\b'\w+/,
20 keyword:
21 /\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,
22 boolean: /\b(?:false|true)\b/i,
23 operator: /<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,
24 punctuation: /\.\.?|[,;():]/,
25 char: /'.'/,
26 variable: /\b[a-z](?:\w)*\b/i
27 }
28}
Note: See TracBrowser for help on using the repository browser.