Skip to content

Commit 4efaabe

Browse files
committed
Fix hex char codes in OCaml indexer.
1 parent 57fc81c commit 4efaabe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

opengrok-indexer/src/main/jflex/analysis/ocaml/OCaml.lexh

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ regular_char = \' [^ \\ \' '\010' '\013'] \'
108108
escaped_char = \' \\ [\\ \' \" n t b r ' '] \'
109109
deccode_char = \' \\ {digit}{digit}{digit} \'
110110
octcode_char = \' \\ o {octit}{octit}{octit} \'
111-
hexcode_char = \' \\ x {hexit}{hexit}{hexit} \'
111+
hexcode_char = \' \\ x {hexit}{hexit} \'
112112

113113
/*
114114
* Extension → %attrid | %%attrid | @attrid

opengrok-indexer/src/test/resources/analysis/ocaml/sample2_xref.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<a class="l" name="5" href="#5">5</a><b>let</b> <a href="/source/s?defs=_c" class="intelliWindow-symbol" data-definition-place="undefined-in-file">_c</a> = <span class="s">&apos;c&apos;</span> <b>and</b>
99
<a class="l" name="6" href="#6">6</a> <a href="/source/s?defs=_d" class="intelliWindow-symbol" data-definition-place="undefined-in-file">_d</a> = &apos;\<span class="n">78</span>&apos; <b>and</b>
1010
<a class="l" name="7" href="#7">7</a> <a href="/source/s?defs=_e" class="intelliWindow-symbol" data-definition-place="undefined-in-file">_e</a> = <span class="s">&apos;\o003&apos;</span> <b>and</b>
11-
<a class="l" name="8" href="#8">8</a> <a href="/source/s?defs=_f" class="intelliWindow-symbol" data-definition-place="undefined-in-file">_f</a> = &apos;\<a href="/source/s?defs=xAf%27" class="intelliWindow-symbol" data-definition-place="undefined-in-file">xAf&apos;</a>
11+
<a class="l" name="8" href="#8">8</a> <a href="/source/s?defs=_f" class="intelliWindow-symbol" data-definition-place="undefined-in-file">_f</a> = <span class="s">&apos;\xAf&apos;</span>
1212
<a class="l" name="9" href="#9">9</a>
1313
<a class="hl" name="10" href="#10">10</a><span class="c">(* {|*)|}</span><span class="c"> *)</span>
1414
<a class="l" name="11" href="#11">11</a>

0 commit comments

Comments
 (0)