@@ -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