Merge pull request #851 from EXetoC/highlite-typo
Punctation -> punctuation.
This commit is contained in:
commit
47e2999fec
3 changed files with 6 additions and 6 deletions
|
|
@ -76,7 +76,7 @@ span.LongStringLit {color: blue}
|
||||||
span.CharLit {color: blue}
|
span.CharLit {color: blue}
|
||||||
span.EscapeSequence {color: black}
|
span.EscapeSequence {color: black}
|
||||||
span.Operator {color: black}
|
span.Operator {color: black}
|
||||||
span.Punctation {color: black}
|
span.Punctuation {color: black}
|
||||||
span.Comment, span.LongComment {font-style:italic; color: green}
|
span.Comment, span.LongComment {font-style:italic; color: green}
|
||||||
span.RegularExpression {color: DarkViolet}
|
span.RegularExpression {color: DarkViolet}
|
||||||
span.TagStart {color: DarkViolet}
|
span.TagStart {color: DarkViolet}
|
||||||
|
|
|
||||||
|
|
@ -98,7 +98,7 @@ doc.file = """
|
||||||
\newcommand{\spanCharLit}[1]{#1}
|
\newcommand{\spanCharLit}[1]{#1}
|
||||||
\newcommand{\spanEscapeSequence}[1]{#1}
|
\newcommand{\spanEscapeSequence}[1]{#1}
|
||||||
\newcommand{\spanOperator}[1]{#1}
|
\newcommand{\spanOperator}[1]{#1}
|
||||||
\newcommand{\spanPunctation}[1]{#1}
|
\newcommand{\spanPunctuation}[1]{#1}
|
||||||
\newcommand{\spanComment}[1]{\emph{#1}}
|
\newcommand{\spanComment}[1]{\emph{#1}}
|
||||||
\newcommand{\spanLongComment}[1]{\emph{#1}}
|
\newcommand{\spanLongComment}[1]{\emph{#1}}
|
||||||
\newcommand{\spanRegularExpression}[1]{#1}
|
\newcommand{\spanRegularExpression}[1]{#1}
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ type
|
||||||
gtEof, gtNone, gtWhitespace, gtDecNumber, gtBinNumber, gtHexNumber,
|
gtEof, gtNone, gtWhitespace, gtDecNumber, gtBinNumber, gtHexNumber,
|
||||||
gtOctNumber, gtFloatNumber, gtIdentifier, gtKeyword, gtStringLit,
|
gtOctNumber, gtFloatNumber, gtIdentifier, gtKeyword, gtStringLit,
|
||||||
gtLongStringLit, gtCharLit, gtEscapeSequence, # escape sequence like \xff
|
gtLongStringLit, gtCharLit, gtEscapeSequence, # escape sequence like \xff
|
||||||
gtOperator, gtPunctation, gtComment, gtLongComment, gtRegularExpression,
|
gtOperator, gtPunctuation, gtComment, gtLongComment, gtRegularExpression,
|
||||||
gtTagStart, gtTagEnd, gtKey, gtValue, gtRawData, gtAssembler,
|
gtTagStart, gtTagEnd, gtKey, gtValue, gtRawData, gtAssembler,
|
||||||
gtPreprocessor, gtDirective, gtCommand, gtRule, gtHyperlink, gtLabel,
|
gtPreprocessor, gtDirective, gtCommand, gtRule, gtHyperlink, gtLabel,
|
||||||
gtReference, gtOther
|
gtReference, gtOther
|
||||||
|
|
@ -39,7 +39,7 @@ const
|
||||||
tokenClassToStr*: array[TTokenClass, string] = ["Eof", "None", "Whitespace",
|
tokenClassToStr*: array[TTokenClass, string] = ["Eof", "None", "Whitespace",
|
||||||
"DecNumber", "BinNumber", "HexNumber", "OctNumber", "FloatNumber",
|
"DecNumber", "BinNumber", "HexNumber", "OctNumber", "FloatNumber",
|
||||||
"Identifier", "Keyword", "StringLit", "LongStringLit", "CharLit",
|
"Identifier", "Keyword", "StringLit", "LongStringLit", "CharLit",
|
||||||
"EscapeSequence", "Operator", "Punctation", "Comment", "LongComment",
|
"EscapeSequence", "Operator", "Punctuation", "Comment", "LongComment",
|
||||||
"RegularExpression", "TagStart", "TagEnd", "Key", "Value", "RawData",
|
"RegularExpression", "TagStart", "TagEnd", "Key", "Value", "RawData",
|
||||||
"Assembler", "Preprocessor", "Directive", "Command", "Rule", "Hyperlink",
|
"Assembler", "Preprocessor", "Directive", "Command", "Rule", "Hyperlink",
|
||||||
"Label", "Reference", "Other"]
|
"Label", "Reference", "Other"]
|
||||||
|
|
@ -258,7 +258,7 @@ proc nimNextToken(g: var TGeneralTokenizer) =
|
||||||
else: inc(pos)
|
else: inc(pos)
|
||||||
of '(', ')', '[', ']', '{', '}', '`', ':', ',', ';':
|
of '(', ')', '[', ']', '{', '}', '`', ':', ',', ';':
|
||||||
inc(pos)
|
inc(pos)
|
||||||
g.kind = gtPunctation
|
g.kind = gtPunctuation
|
||||||
of '\0':
|
of '\0':
|
||||||
g.kind = gtEof
|
g.kind = gtEof
|
||||||
else:
|
else:
|
||||||
|
|
@ -473,7 +473,7 @@ proc clikeNextToken(g: var TGeneralTokenizer, keywords: openArray[string],
|
||||||
else: inc(pos)
|
else: inc(pos)
|
||||||
of '(', ')', '[', ']', '{', '}', ':', ',', ';', '.':
|
of '(', ')', '[', ']', '{', '}', ':', ',', ';', '.':
|
||||||
inc(pos)
|
inc(pos)
|
||||||
g.kind = gtPunctation
|
g.kind = gtPunctuation
|
||||||
of '\0':
|
of '\0':
|
||||||
g.kind = gtEof
|
g.kind = gtEof
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue