Skip to content

Commit cde0b5b

Browse files
authored
Ada: Changed attr-name to attribute; Use attr-name as alias (#3381)
1 parent c30b736 commit cde0b5b

File tree

3 files changed

+18
-15
lines changed

3 files changed

+18
-15
lines changed

components/prism-ada.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ Prism.languages.ada = {
99
pattern: /\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i
1010
}
1111
],
12-
'attr-name': /\b'\w+/,
12+
'attribute': {
13+
pattern: /\b'\w+/,
14+
alias: 'attr-name'
15+
},
1316
'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|or|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,
1417
'boolean': /\b(?:false|true)\b/i,
1518
'operator': /<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,

components/prism-ada.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
Integer'Size
2-
Character'Val
3-
4-
----------------------------------------------------
5-
6-
[
7-
["variable", "Integer"], ["attr-name", "'Size"],
8-
["variable", "Character"], ["attr-name", "'Val"]
9-
]
10-
11-
----------------------------------------------------
12-
13-
Checks for attributes.
1+
Integer'Size
2+
Character'Val
3+
4+
----------------------------------------------------
5+
6+
[
7+
["variable", "Integer"], ["attribute", "'Size"],
8+
["variable", "Character"], ["attribute", "'Val"]
9+
]
10+
11+
----------------------------------------------------
12+
13+
Checks for attributes.

0 commit comments

Comments
 (0)