Skip to content

Commit

Permalink
Added comma to list of allowed symbols in a command. This works as ex…
Browse files Browse the repository at this point in the history
…pected if used as a literal, and is the only way to have the word 'comma' present in a command and recognized properly by Dragon, as far as I can tell.
  • Loading branch information
wolfmanstout committed Sep 17, 2018
1 parent 0393bac commit 5ebe711
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dragonfly/grammar/elements_compound.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ class _Literal(parser_.Sequence):
def __init__(self):
# Use a pattern to allow ascii and Unicode alphanumeric characters plus a
# few special characters.
pattern = re.compile(r"[\w_\-.']", re.UNICODE)
pattern = re.compile(r"[\w_\-.',]", re.UNICODE)
word = parser_.CharacterSeries(None, pattern=pattern)
whitespace = parser_.Whitespace()
elements = (
Expand Down

0 comments on commit 5ebe711

Please sign in to comment.