Skip to content

Commit 4e1448c

Browse files
committed
Updated keywords for Ceylon language
1 parent c41b6f3 commit 4e1448c

1 file changed

Lines changed: 10 additions & 9 deletions

File tree

pygments/lexers/jvm.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -935,17 +935,18 @@ class CeylonLexer(RegexLexer):
935935
(r'[^\S\n]+', Text),
936936
(r'//.*?\n', Comment.Single),
937937
(r'/\*', Comment.Multiline, 'comment'),
938-
(r'(variable|shared|abstract|doc|by|formal|actual|late|native)',
938+
(r'(shared|abstract|formal|default|actual|variable|deprecated|small|'
939+
r'late|literal|doc|by|see|throws|optional|license|tagged|final|native|'
940+
r'annotation|sealed)',
939941
Name.Decorator),
940-
(r'(break|case|catch|continue|default|else|finally|for|in|'
941-
r'variable|if|return|switch|this|throw|try|while|is|exists|dynamic|'
942-
r'nonempty|then|outer|assert)\b', Keyword),
943-
(r'(abstracts|extends|satisfies|adapts|'
944-
r'super|given|of|out|assign|'
945-
r'transient|volatile)\b', Keyword.Declaration),
946-
(r'(function|value|void)\b',
942+
(r'(break|case|catch|continue|else|finally|for|in|'
943+
r'if|return|switch|this|throw|try|while|is|exists|dynamic|'
944+
r'nonempty|then|outer|assert|let)\b', Keyword),
945+
(r'(abstracts|extends|satisfies|'
946+
r'super|given|of|out|assign)\b', Keyword.Declaration),
947+
(r'(function|value|void|new)\b',
947948
Keyword.Type),
948-
(r'(package)(\s+)', bygroups(Keyword.Namespace, Text)),
949+
(r'(assembly|module|package)(\s+)', bygroups(Keyword.Namespace, Text)),
949950
(r'(true|false|null)\b', Keyword.Constant),
950951
(r'(class|interface|object|alias)(\s+)',
951952
bygroups(Keyword.Declaration, Text), 'class'),

0 commit comments

Comments
 (0)