Copyright | (c) 2013-2020 Brendan Hay <brendan.g.hay@gmail.com> |
---|---|
License | This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. A copy of the MPL can be found in the LICENSE file or you can obtain it at http://mozilla.org/MPL/2.0/. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | experimental |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Warning: this is an internal module, and does not have a stable API or name. Functions in this module may not check or enforce preconditions expected by public modules. Use at your own risk!
Synopsis
- defaultSyntax :: Syntax
- alternateSyntax :: Syntax
- commentStyle :: String -> String -> CommentStyle
- operatorStyle :: TokenParsing m => IdentifierStyle m
- variableStyle :: TokenParsing m => IdentifierStyle m
- keywordStyle :: TokenParsing m => IdentifierStyle m
- keywordSet :: HashSet String
- pragmaStyle :: TokenParsing m => IdentifierStyle m
- pragmaSet :: HashSet String
Documentation
alternateSyntax :: Syntax Source #
An alternate syntax (based on Play/Scala templates) designed to be used when the default is potentially ambiguous due to another encountered smarty based syntax.
Delimiters:
- Inline:
<@ ... @>
- Comments:
@* ... *@
- Blocks:
@( ... )@
commentStyle :: String -> String -> CommentStyle Source #
operatorStyle :: TokenParsing m => IdentifierStyle m Source #
variableStyle :: TokenParsing m => IdentifierStyle m Source #
keywordStyle :: TokenParsing m => IdentifierStyle m Source #
pragmaStyle :: TokenParsing m => IdentifierStyle m Source #