Skip to content

Commit f664af2

Browse files
committed
Moved final from keywords to directive
* lib/coderay/scanners/cpp.rb:
1 parent dbec41f commit f664af2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/coderay/scanners/cpp.rb

Lines changed: 2 additions & 2 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', 'final', 'for', 'goto', 'if', 'namespace', 'new',
18+
'enum', 'export', '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',
@@ -36,7 +36,7 @@ class CPlusPlus < Scanner
3636
] # :nodoc:
3737
DIRECTIVES = [
3838
'alignas', 'alignof', 'auto', 'const', 'constexpr', 'decltype', 'explicit',
39-
'extern', 'friend', 'inline', 'mutable', 'noexcept', 'operator',
39+
'extern', 'final', '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)