File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change
1
+ ## Version 11.11.2
2
+
3
+ Core Grammars:
4
+
5
+ - fix(ruby) highlight entire class name even when it contains underscores
6
+
7
+
1
8
## Version 11.11.1
2
9
3
10
- Fixes regression with Rust grammar.
Original file line number Diff line number Diff line change @@ -12,9 +12,9 @@ export default function(hljs) {
12
12
const RUBY_METHOD_RE = '([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)' ;
13
13
// TODO: move concepts like CAMEL_CASE into `modes.js`
14
14
const CLASS_NAME_RE = regex . either (
15
- / \b ( [ A - Z ] + [ a - z 0 - 9 ] + ) + / ,
15
+ / \b ( [ A - Z ] + [ a - z 0 - 9 _ ] + ) + / ,
16
16
// ends in caps
17
- / \b ( [ A - Z ] + [ a - z 0 - 9 ] + ) + [ A - Z ] + / ,
17
+ / \b ( [ A - Z ] + [ a - z 0 - 9 _ ] + ) + [ A - Z ] + / ,
18
18
)
19
19
;
20
20
const CLASS_NAME_WITH_NAMESPACE_RE = regex . concat ( CLASS_NAME_RE , / ( : : \w + ) * / )
You can’t perform that action at this time.
0 commit comments