Skip to content

Commit 92a8e56

Browse files
committed
Small changes to grouping of new C++11 keywords
* lib/coderay/scanners/cpp.rb:
1 parent 2612789 commit 92a8e56

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/coderay/scanners/cpp.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class CPlusPlus < Scanner
1515
'and', 'and_eq', 'asm', 'bitand', 'bitor', 'break',
1616
'case', 'catch', 'class', 'compl', 'const_cast',
1717
'continue', 'default', 'delete', 'do', 'dynamic_cast', 'else',
18-
'enum', 'export', 'for', 'goto', 'if', 'namespace', 'new',
18+
'enum', 'export', 'final', 'for', 'goto', 'if', 'namespace', 'new',
1919
'not', 'not_eq', 'or', 'or_eq', 'reinterpret_cast', 'return',
2020
'sizeof', 'static_assert', 'static_cast', 'struct', 'switch',
2121
'template', 'throw', 'try', 'typedef', 'typeid', 'typename', 'union',
@@ -24,19 +24,19 @@ class CPlusPlus < Scanner
2424

2525
PREDEFINED_TYPES = [
2626
'bool', 'char', 'char16_t', 'char32_t', 'double', 'float',
27-
'int', 'long', 'nullptr' 'short', 'signed', 'unsigned',
27+
'int', 'long', 'short', 'signed', 'unsigned',
2828
'wchar_t', 'string',
2929
] # :nodoc:
3030
PREDEFINED_CONSTANTS = [
3131
'false', 'true',
32-
'EOF', 'NULL',
32+
'EOF', 'NULL', 'nullptr'
3333
] # :nodoc:
3434
PREDEFINED_VARIABLES = [
3535
'this',
3636
] # :nodoc:
3737
DIRECTIVES = [
3838
'alignas', 'alignof', 'auto', 'const', 'constexpr', 'decltype', 'explicit',
39-
'extern', 'final', 'friend', 'inline', 'mutable', 'noexcept', 'operator',
39+
'extern', 'friend', 'inline', 'mutable', 'noexcept', 'operator',
4040
'override', 'private', 'protected', 'public', 'register', 'static',
4141
'thread_local', 'using', 'virtual', 'void', 'volatile',
4242
] # :nodoc:

0 commit comments

Comments
 (0)