Skip to content

Commit

Permalink
Merge pull request #834 from signalvine/fix-haskell-error
Browse files Browse the repository at this point in the history
Don't treat `error` specially in Haskell
  • Loading branch information
gfx authored Dec 21, 2017
2 parents 16872c2 + 891bdae commit b0fb90a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/rouge/lexers/haskell.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ def self.detect?(text)

rule /\bimport\b/, Keyword::Reserved, :import
rule /\bmodule\b/, Keyword::Reserved, :module
rule /\berror\b/, Name::Exception
rule /\b(?:#{reserved.join('|')})\b/, Keyword::Reserved
# not sure why, but ^ doesn't work here
# rule /^[_a-z][\w']*/, Name::Function
Expand Down

0 comments on commit b0fb90a

Please sign in to comment.