Skip to content

Commit

Permalink
bpf: highlight helper names
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Chaignon <paul.chaignon@orange.com>
  • Loading branch information
pchaigno committed Oct 10, 2019
1 parent 04e5d1e commit 88a4917
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/rouge/lexers/bpf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ class BPF < RegexLexer
rule %r/(call)(\s+)(\d+)/i do
groups Keyword, Text::Whitespace, Literal::Number::Integer
end
rule %r/(call)(\s+)(\w+)(#)(\d+)/i do
groups Keyword, Text::Whitespace, Name::Builtin, Punctuation, Literal::Number::Integer
end

# Unconditional jumps
rule %r/(goto)(\s*)(\+\d+)?(\s*)(<?\w+>?)/i do
Expand Down

0 comments on commit 88a4917

Please sign in to comment.