Skip to content

Commit

Permalink
test and fix for issue #56
Browse files Browse the repository at this point in the history
  • Loading branch information
ianturton authored and geographika committed Jun 11, 2018
1 parent 25d380d commit 3992595
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mappyfile/mapfile.lalr.g
Expand Up @@ -116,7 +116,7 @@ INT: /[0-9]+(?![_a-zA-Z])/
%import common.FLOAT
// UNQUOTED_STRING: /[a-z_][a-z0-9_\-]*/i
UNQUOTED_STRING: /[a-z0-9_\-]+/i
UNQUOTED_STRING: /[a-z0-9_\-:]+/i
DOUBLE_QUOTED_STRING: "\"" ("\\\""|/[^"]/)* "\"" "i"?
SINGLE_QUOTED_STRING: "'" ("\\'"|/[^']/)* "'" "i"?
ESCAPED_STRING: /`.*?`i?/
Expand Down
10 changes: 10 additions & 0 deletions tests/test_expressions.py
Expand Up @@ -344,6 +344,16 @@ def test_list_expression_alt():
assert(output(s) == exp)


def test_class_expression_oddname():
s = '''
CLASS
TEXT ([area:ian])
END
'''
exp = "CLASS TEXT ([area:ian]) END"
assert(output(s) == exp)


def run_tests():
"""
Need to comment out the following line in C:\VirtualEnvs\mappyfile\Lib\site-packages\pep8.py
Expand Down

0 comments on commit 3992595

Please sign in to comment.