lib/rouge/lexers/hack.rb in rouge-3.21.0 vs lib/rouge/lexers/hack.rb in rouge-3.22.0
- old
+ new
@@ -30,10 +30,10 @@
void int string bool float double
arraykey num Stringish
)
end
- prepend :template do
+ prepend :root do
rule %r/<\?hh(\s*\/\/\s*(strict|decl|partial))?$/, Comment::Preproc, :php
end
prepend :php do
rule %r((/\*\s*)(HH_(?:IGNORE_ERROR|FIXME)\[\d+\])([^*]*)(\*/)) do