diff options
author | Araq <rumpf_a@web.de> | 2011-03-14 23:57:41 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2011-03-14 23:57:41 +0100 |
commit | 8d734244b14e09c97267432468ac20fcf8ff82eb (patch) | |
tree | 253eae61df789c42efe49b7c30cf38c66a3c208e /rod/rst.nim | |
parent | 6850fb73c1b9ae8d3f56a61ee37922c3cb3788d6 (diff) | |
download | Nim-8d734244b14e09c97267432468ac20fcf8ff82eb.tar.gz |
linearScanEnd pragma; string case statement optimization
Diffstat (limited to 'rod/rst.nim')
-rwxr-xr-x | rod/rst.nim | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/rod/rst.nim b/rod/rst.nim index efda9bd9a..dace43a44 100755 --- a/rod/rst.nim +++ b/rod/rst.nim @@ -188,7 +188,7 @@ proc rawGetTok(L: var TLexer, tok: var TToken) = of '\x0D', '\x0A': getIndent(L, tok) of '!', '\"', '#', '$', '%', '&', '\'', '(', ')', '*', '+', ',', '-', '.', - '/', ':', ';', '<', '=', '>', '?', '@', '[', '\\', ']', '^', '_', '`', '{', + '/', ':', ';', '<', '=', '>', '?', '@', '[', '\\', ']', '^', '_', '`', '{', '|', '}', '~': getAdornment(L, tok) if len(tok.symbol) <= 3: tok.kind = tkPunct @@ -257,16 +257,16 @@ type value*: PRstNode TSharedState{.final.} = object - uLevel*, oLevel*: int # counters for the section levels - subs*: seq[TSubstitution] # substitutions - refs*: seq[TSubstitution] # references + uLevel*, oLevel*: int # counters for the section levels + subs*: seq[TSubstitution] # substitutions + refs*: seq[TSubstitution] # references underlineToLevel*: TLevelMap # Saves for each possible title adornment # character its level in the # current document. # This is for single underline adornments. - overlineToLevel*: TLevelMap # Saves for each possible title adornment - # character its level in the current document. - # This is for over-underline adornments. + overlineToLevel*: TLevelMap # Saves for each possible title adornment + # character its level in the current document. + # This is for over-underline adornments. PSharedState = ref TSharedState TRstParser = object of TObject |