Added the beginnings of Haskell configuration.
This commit is contained in:
parent
09061fd26e
commit
58cd49cf15
2 changed files with 58 additions and 0 deletions
|
@ -118,3 +118,12 @@ lang.xml_comment.format.found = lang.shared.format.found
|
|||
lang.xml_tag.tokens.attributes ([a-zA-Z_-]+?)=
|
||||
lang.xml_tag.tokens.attributes.format 42
|
||||
|
||||
# Haskell
|
||||
|
||||
lang.haskell.format.default = lang.shared.format.default
|
||||
lang.haskell.format.selection = lang.shared.format.selection
|
||||
lang.haskell.format.found = lang.shared.format.found
|
||||
lang.haskell.tokens.comments.format = lang.shared.tokens.comments.format
|
||||
lang.haskell.tokens.doublequoted_strings.format = lang.shared.tokens.doublequoted_strings.format
|
||||
lang.haskell.tokens.singlequoted_strings.format = lang.shared.tokens.singlequoted_strings.format
|
||||
lang.haskell.tokens.non_alphanum.format = lang.shared_tag.tokens.non_alphanum.format
|
||||
|
|
|
@ -1281,6 +1281,55 @@ lang.gherkin.indent.roundup true
|
|||
lang.gherkin.indent.indenters ^\s*(?:Feature|Scenario):
|
||||
lang.gherkin.wrap_margin 80
|
||||
|
||||
lang.haskell.filemask \.hs$
|
||||
# lang.haskell.bangmask #!.*ruby
|
||||
lang.haskell.format.default = lang.shared.format.default
|
||||
lang.haskell.format.selection = lang.shared.format.selection
|
||||
lang.haskell.format.found = lang.shared.format.found
|
||||
lang.haskell.tokens.reserved_words \b(case|class|data|deriving|do|else|if|import|in|infix|infixl|infixr|instance|let|of|module|newtype|then|type|where)\b
|
||||
lang.haskell.tokens.reserved_words.format = lang.shared.tokens.reserved_words.format
|
||||
# lang.haskell.tokens.non_modifiers ^\s*(if|unless)
|
||||
# lang.haskell.tokens.non_modifiers.format white
|
||||
# lang.haskell.tokens.modifiers \s+(if|unless)
|
||||
# lang.haskell.tokens.modifiers.format 44
|
||||
# lang.haskell.tokens.constants \b([A-Z_]+|[A-Z_][A-Z0-9_]+)\b
|
||||
# lang.haskell.tokens.constants.format = lang.shared.tokens.constants.format
|
||||
# lang.haskell.tokens.symbols [^:](:[a-zA-Z_][a-zA-Z_0-9]*)
|
||||
# lang.haskell.tokens.symbols.format white bold
|
||||
lang.haskell.tokens.comments (--.*)
|
||||
lang.haskell.tokens.comments.format = lang.shared.tokens.comments.format
|
||||
lang.haskell.comment_string "-- "
|
||||
lang.haskell.tokens.long_comments.open \{-
|
||||
lang.haskell.tokens.long_comments.close -\}
|
||||
lang.haskell.tokens.long_comments.format = lang.shared.tokens.comments.format
|
||||
# lang.haskell.tokens.regular_expressions (\/.+?[^\\]\/)
|
||||
lang.haskell_comments
|
||||
# lang.haskell.tokens.regular_expressions (\/.+?[^\\]\/)
|
||||
# lang.haskell.tokens.regular_expressions.format red bold
|
||||
# lang.haskell.tokens.regular_expressions2 (%r\{.+?[^\}]\})
|
||||
# lang.haskell.tokens.regular_expressions2.format red bold
|
||||
lang.haskell.tokens.doublequoted_strings (\".*?[^\\]\"|\"\")
|
||||
lang.haskell.tokens.doublequoted_strings.format green bold
|
||||
lang.haskell.tokens.singlequoted_strings ('.*?[^\\]'|'')
|
||||
lang.haskell.tokens.singlequoted_strings.format green bold
|
||||
# lang.haskell.tokens.backquoted_strings (`.*?[^\\]`|``)
|
||||
# lang.haskell.tokens.backquoted_strings.format red bold
|
||||
lang.haskell.tokens.numbers \b([0-9]+[.e][0-9]+|[0-9]+)
|
||||
lang.haskell.tokens.numbers.format blue bold
|
||||
lang.haskell.tokens.non_alphanum [@!#$%^&*()\[\]{}/?=+\-\\|,<.>;~]
|
||||
lang.haskell.tokens.non_alphanum.format white
|
||||
lang.haskell.indent.size 4
|
||||
lang.haskell.indent.auto true
|
||||
lang.haskell.indent.roundup true
|
||||
lang.haskell.tabsize 4
|
||||
lang.haskell.indent.indenters ^\s*(else|if|where)\b|([{\[(=]$|(?:do|let|of|where)$|\{\s*\|[\w\s,]*\|\s*$)
|
||||
# lang.haskell.indent.unindenters ^\s*(end|else|elsif|ensure|when|rescue)\b|(^\s*[\]})])
|
||||
lang.haskell.indent.preventers (\".+?[^\\]\")|('.+?[^\\]')|(`.+?[^\\]`)|(\/.+?[^\\]\/)|(^\s*--.*)
|
||||
lang.haskell.indent.ignore ^\s*$
|
||||
# lang.haskell.context.ignore ^=(begin|end)$
|
||||
lang.haskell.column_delimiters =>?|:|,
|
||||
|
||||
|
||||
# Custom configuration files can be included.
|
||||
# If a setting is specified again, it overrides the previous setting given
|
||||
# higher up in the configuration file(s).
|
||||
|
|
Loading…
Reference in a new issue