lib/rouge/lexers/ceylon.rb in rouge-3.4.1 vs lib/rouge/lexers/ceylon.rb in rouge-3.5.0
- old
+ new
@@ -9,38 +9,10 @@
mimetypes 'text/x-ceylon'
title "Ceylon"
desc 'Say more, more clearly.'
- keywords = %w(
- break case catch continue else finally for in
- if return switch this throw try while is exists dynamic
- nonempty then outer assert let
- )
-
- keywords_declaration = %w(
- abstracts extends satisfies super given of out assign
- )
-
- keywords_type = %w(
- function value void new
- )
-
- keywords_namespace = %w(
- assembly module package
- )
-
- keywords_constant = %w(
- true false null
- )
-
- annotations = %w(
- shared abstract formal default actual variable deprecated small
- late literal doc by see throws optional license tagged final native
- annotation sealed
- )
-
state :whitespace do
rule %r([^\S\n]+), Text
rule %r(//.*?\n), Comment::Single
rule %r(/\*), Comment::Multiline
end
@@ -84,10 +56,10 @@
groups Operator, Name::Attribute
end
rule %r([a-zA-Z_]\w*:), Name::Label
rule %r((\\I[a-z]|[A-Z])\w*), Name::Decorator
rule %r([a-zA-Z_]\w*), Name
- rule %r([~^*!%&\[\](){}<>|+=:;,./?-`]), Operator
+ rule %r([~^*!%&\[\](){}<>|+=:;,./?`-]), Operator
rule %r(\d{1,3}(_\d{3})+\.\d{1,3}(_\d{3})+[kMGTPmunpf]?), Literal::Number::Float
rule %r(\d{1,3}(_\d{3})+\.[0-9]+([eE][+-]?[0-9]+)?[kMGTPmunpf]?),
Literal::Number::Float
rule %r([0-9][0-9]*\.\d{1,3}(_\d{3})+[kMGTPmunpf]?), Literal::Number::Float
rule %r([0-9][0-9]*\.[0-9]+([eE][+-]?[0-9]+)?[kMGTPmunpf]?),