trifecta: allow _ at identifier start

This commit is contained in:
Benno Fünfstück 2014-08-03 16:20:09 +02:00
parent 19c77ae2d1
commit e5a0f645d2
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ import qualified Data.HashSet as HashSet
identStyle :: IdentifierStyle Parser
identStyle = IdentifierStyle
{ _styleName = "nix"
, _styleStart = letter
, _styleStart = letter <|> char '_'
, _styleLetter = alphaNum <|> oneOf "_."
, _styleReserved = HashSet.fromList reservedNames
, _styleHighlight = Identifier