Scintilla AHK v2 Lexer sneak peek

Discuss the future of the AutoHotkey language
User avatar
fincs
Posts: 504
Joined: 30 Sep 2013, 14:17
GitHub: fincs
Location: Seville, Spain
Contact:

Scintilla AHK v2 Lexer sneak peek

19 Feb 2014, 12:46

I'm developing an AutoHotkey v2 Scintilla lexer from scratch that will be included in SciTE4AutoHotkey.
The following items are implemented:
  • Basic syntax highlighting of command and function syntax
  • Line and block comments
  • Directives
  • Escape sequences in strings
  • Nested %expressions% (up to 5 levels of nesting, configurable in the lexer source code), even command arg force-expr mode
  • Operator-based (that is, non-(-based) continuation sections, with context depending on whether the preceding non-blank/comment line ended in a command's string arg, an expression line or an inner expression
  • BIV, BIF and flow of control special highlighting (the former two with keyword list support, the flow of control list is hardcoded)
  • Folding (comes almost for free with operator highlighting)
The following items are missing:
  • Hotkeys, hotstrings and labels
  • (-based continuation sections
Here's a syntax highlighting example:
http://fincs.ahk4.net/files/v2test.html
fincs
Windows 10 x64 Build 18362 | AMD Ryzen 7 3700X with 32 GB of RAM | AutoHotkey v1.1.31.01
Get SciTE4AutoHotkey v3.0.06.01 - [My project list]
guest3456
Posts: 2761
Joined: 09 Oct 2013, 10:31

Re: Scintilla AHK v2 Lexer sneak peek

24 Feb 2014, 01:13

will there be Notepad++ support?

User avatar
fincs
Posts: 504
Joined: 30 Sep 2013, 14:17
GitHub: fincs
Location: Seville, Spain
Contact:

Re: Scintilla AHK v2 Lexer sneak peek

24 Feb 2014, 04:25

N++ also uses Scintilla, so in theory it should be possible to use this lexer with N++.
fincs
Windows 10 x64 Build 18362 | AMD Ryzen 7 3700X with 32 GB of RAM | AutoHotkey v1.1.31.01
Get SciTE4AutoHotkey v3.0.06.01 - [My project list]

Return to “AutoHotkey v2 Development”

Who is online

Users browsing this forum: No registered users and 27 guests