Scintilla AHK v2 Lexer sneak peek

Discuss the future of the AutoHotkey language
User avatar
fincs
Posts: 527
Joined: 30 Sep 2013, 14:17
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 11 Pro (Version 22H2) | AMD Ryzen 7 3700X with 32 GB of RAM | AutoHotkey v2.0.0 + v1.1.36.02
Get SciTE4AutoHotkey v3.1.0 - [My project list]
guest3456
Posts: 3463
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: 527
Joined: 30 Sep 2013, 14:17
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 11 Pro (Version 22H2) | AMD Ryzen 7 3700X with 32 GB of RAM | AutoHotkey v2.0.0 + v1.1.36.02
Get SciTE4AutoHotkey v3.1.0 - [My project list]

Return to “AutoHotkey Development”

Who is online

Users browsing this forum: No registered users and 14 guests