XhmikosR / notepad2-mod

LOOKING FOR DEVELOPERS - Notepad2-mod, a Notepad2 fork, a fast and light-weight Notepad-like text editor with syntax highlighting
https://xhmikosr.github.io/notepad2-mod/
Other
1.45k stars 270 forks source link

AutoHotkey syntax messed up with ternary operator #116

Open cyruz-git opened 9 years ago

cyruz-git commented 9 years ago

If using parenthesis with ternary operator, the syntax gets messed up.

For example, using this code:

( testvar == "" ) ? testvar := "testcontent"

everything that comes next will not be highlighted.

XhmikosR commented 9 years ago

That lexer is unofficial so unless someone provides a patch the issue won't be fixed. But thanks for the report anyway. On Apr 21, 2015 9:37 PM, "cyruz-git" notifications@github.com wrote:

If using parenthesis with ternary operator, the syntax gets messed up.

For example, using this code:

( testvar == "" ) ? testvar := "testcontent"

everything that comes next will not be highlighted.

— Reply to this email directly or view it on GitHub https://github.com/XhmikosR/notepad2-mod/issues/116.

cyruz-git commented 9 years ago

Hi XhmikosR, yeah I understand. The one who created it is part of the AutoHotkey community, maybe he will accept bug reports... I'll come back to you with an updated version eventually.

XhmikosR commented 9 years ago

IIRC he has stated that the lexer is buggy; not sure he'll look at it. But yeah please let me know. On Apr 21, 2015 10:03 PM, "cyruz-git" notifications@github.com wrote:

Hi XhmikosR, yeah I understand. The one who created it is part of the AutoHotkey community, maybe he will accept bug reports... I'll come back to you with an updated version eventually.

— Reply to this email directly or view it on GitHub https://github.com/XhmikosR/notepad2-mod/issues/116#issuecomment-94907804 .

cyruz-git commented 9 years ago

Did you evaluate also other lexer? Because I found this, that started as a work based on PhiLho's one but then was rewritten from scratch: https://github.com/RaptorX/LexAHKL