Skip to content

Commit d091b9f

Browse files
Merge pull request #249 from cym13/master
Fix parenthesis issues blocking documentation generation
2 parents 9fd97c8 + b013094 commit d091b9f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pegged/parser.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ TKNString <- (&'q{' ('q' NestedList('{',DString,'}')))
109109
110110
DLMString <- ('q' doublequote) ( (&'{' NestedList('{',DString,'}'))
111111
/ (&'[' NestedList('[',DString,']'))
112-
/ (&'(' NestedList('(',DString,')'))
112+
/ (&'$(LPAREN)' NestedList('(',DString,')'))
113113
/ (&'<' NestedList('<',DString,'>'))
114114
) doublequote
115115

pegged/peg.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ struct ParseTree
244244
string[] matches; /// The matched input's parts. Some expressions match at more than one place, hence matches is an array.
245245
246246
string input; /// The input string that generated the parse tree. Stored here for the parse tree to be passed to other expressions, as input.
247-
size_t begin, end; /// Indices for the matched part (from the very beginning of the first match to the last char of the last match.
247+
size_t begin, end; /// Indices for the matched part from the very beginning of the first match to the last char of the last match.
248248
249249
ParseTree[] children; /// The sub-trees created by sub-rules parsing.
250250

pegged/tester/testerparser.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Comment <-
3131
3232
NestedComment <- '/+' (!NestedCommentEnd . / NestedComment) NestedCommentEnd
3333
34-
# This is needed to make the /+ +/ nest when the grammar is placed into a D nested comment ;)
34+
# This is needed to make the /+ +/ nest when the grammar is placed into a D # nested comment ;$(RPAREN)
3535
NestedCommentEnd <- '+/'
3636
3737

0 commit comments

Comments
 (0)