Skip to content

Commit

Permalink
Correct bugs in lexer
Browse files Browse the repository at this point in the history
  • Loading branch information
pyrmont authored and mossheim committed Jun 6, 2019
1 parent f509b8e commit badb24f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/rouge/lexers/supercollider.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def self.constants
rule %r(/[*]), Comment::Multiline, :nested_comment
rule %r([*]/), Comment::Multiline, :pop!
rule %r([^*/]+)m, Comment::Multiline
rule /./, Comment::Multiline
end

state :root do
Expand Down Expand Up @@ -107,7 +108,7 @@ def self.constants
rule /[\^:#]/, Operator

# treat curry argument as a special operator
rule /_/, Name::Builtin
rule /\b_\b/, Name::Builtin
end
end
end
Expand Down

0 comments on commit badb24f

Please sign in to comment.