notepad2-mod icon indicating copy to clipboard operation
notepad2-mod copied to clipboard

AutoHotkey syntax messed up with ternary operator

Open cyruz-git opened this issue 10 years ago • 4 comments

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.

cyruz-git avatar Apr 21 '15 18:04 cyruz-git

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" [email protected] 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.

XhmikosR avatar Apr 21 '15 18:04 XhmikosR

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.

cyruz-git avatar Apr 21 '15 19:04 cyruz-git

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" [email protected] 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 .

XhmikosR avatar Apr 21 '15 19:04 XhmikosR

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

cyruz-git avatar Apr 22 '15 07:04 cyruz-git