<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 15 November 2015 at 17:02, Jacob Carlborg via Digitalmars-d <span dir="ltr"><<a href="mailto:digitalmars-d@puremagic.com" target="_blank">digitalmars-d@puremagic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 2015-11-14 11:44, Iain Buclaw wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
I'm currently making changes to cgdb, and would like to have someone<br>
give a quick view over the lexer rules.<br>
<br>
<a href="https://github.com/cgdb/cgdb/blob/master/lib/tokenizer/dlexer.l" rel="noreferrer" target="_blank">https://github.com/cgdb/cgdb/blob/master/lib/tokenizer/dlexer.l</a><br>
<br>
Having a skim over myself, I see @nogc needs adding, and probably<br>
c_long, cpp_long and other ABI compatibility types that the compiler<br>
recognises.<br>
<br>
Anything else missing? Could be any feature, not just keywords.<br>
</blockquote>
<br></span>
Keywords:<br>
<br>
* __parameters<br>
* macro<br>
<br></blockquote><div><br></div><div>'macro' is a reserved word, not a keyword. I'd accept anything that is valid code. :-)<br><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Strings:<br>
<br>
* Delimited string<br>
* Token string<br></blockquote><div><br></div><div>This is tricky. And I'd expect it would need a smarter lexing technology to pull it off.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
* Seems to be missing most escape sequences<br></blockquote><div><br></div><div>Not particularly bothered about having a special highlight for espace sequences, but nice suggestion all the same.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Other:<br>
<br>
__FILE__ and all related special constants<span class="HOEnZb"><font color="#888888"><br>
<br></font></span></blockquote><div><br></div><div>OK. Added them all under literals.<br></div><div><br></div></div></div></div>