text/x-nit
*.nit
#
\\((0-7){3}|(x[a-fA-F0-9]{2})|(c\S)|([CM]-\S)|(M-C-\S)|.)
`\{
`\}
class
fun
redef
var
module
type
universal
enum
import
do
end
catch
intrude
private
if
then
else
while
for
assert
is
abstract
intern
extern
public
protected
or
as
isa
break
continue
return
label
abort
nullable
new
special
super
init
in
or
and
not
writable
readable
self
(::)?\b_[a-zA-Z_][a-zA-Z0-9_]*
(::)?\b[A-Z][A-Za-z0-9_]*\b
null
false
true
\d(_?\d)*
( (\%{underscore_num})?\.\%{underscore_num} | \%{underscore_num}\. ) |
( (\%{underscore_num}|(\%{underscore_num})?\.\%{underscore_num}|\%{underscore_num}\.)[eE][+-]?\%{underscore_num} )
(?<![\w\.])\%{float}(?![\w\.])
(?<![\w\.])([1-9](_?[0-9])*|0)(?![\w\.])
{
}
"
"
'
'
\\['\\]