Skip to content

Commit 55bd802

Browse files
authored
Add parallel keyword, square brackets and @ for Ada 2022 (#2117)
Resolves #2116
1 parent 6e1e5a4 commit 55bd802

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/rouge/lexers/ada.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module Rouge
55
module Lexers
66
class Ada < RegexLexer
77
tag 'ada'
8-
filenames '*.ada', '*.ads', '*.adb', '*.gpr'
8+
filenames '*.ada', '*.ads', '*.adb', '*.adc', '*.gpr'
99
mimetypes 'text/x-ada'
1010

1111
title 'Ada'
@@ -26,7 +26,7 @@ def self.idents
2626
abort abstract accept access aliased all array at begin body
2727
case constant declare delay delta digits do else elsif end
2828
exception exit for generic goto if in interface is limited
29-
loop new null of others out overriding pragma private
29+
loop new null of others out overriding parallel pragma private
3030
protected raise range record renames requeue return reverse
3131
select separate some synchronized tagged task terminate then
3232
until use when while with
@@ -143,8 +143,8 @@ def self.idents
143143
end
144144

145145
# Operators and punctuation characters.
146-
rule %r{[+*/&<=>|]|-|=>|\.\.|\*\*|[:></]=|<<|>>|<>}, Operator
147-
rule %r{[.,:;()]}, Punctuation
146+
rule %r{[+*/&<=>|]|-|=>|\.\.|\*\*|[:></]=|<<|>>|<>|@}, Operator
147+
rule %r{[.,:;()\[\]]}, Punctuation
148148

149149
rule ID do |m|
150150
t = self.class.idents[m[0].downcase]

0 commit comments

Comments
 (0)