C#, Inno Script, Autohotkey lexers

All questions regarding lexer highlighting schemes are discussed here...
uvviewsoft
Posts: 392
Joined: 01.12.2020 13:46

Post by uvviewsoft »

that was hard to fix; but fixed - please test. now "id" after "Id and spaces" is _not_ a function name.
king.midas
Posts: 40
Joined: 26.02.2019 13:47

Post by king.midas »

Unfortunately alsou in tree does not exist normal functions after Hotkeys
Sample:

Code: Select all

F11:: ExitApp

func1(s) {
    
}

func3(s) {
    
}
func2() {
    
}
https://i.imgur.com/CRJzApt.png
uvviewsoft
Posts: 392
Joined: 01.12.2020 13:46

Post by uvviewsoft »

thanks, fixed now. lexer is updated.
now AHK 'func name' must be on line start. not after 'id with spaces'.
feel free to post any other lexers issues.
king.midas
Posts: 40
Joined: 26.02.2019 13:47

Post by king.midas »

Now in "tree" functions shows right.

Thank you for great editor!

PS: Primary I am using Markdown and Autohotkey lexers - I try to report bugs / oddities)
main Alexey
Posts: 2265
Joined: 25.08.2021 18:15

Post by main Alexey »

Lexer C# updates:
- fixed styles of some keywords ('ref', 'implicit', 'explicit'), added 'record'
- added code-tree item for 'record' and 'interface' blocks
- fixed highlight for string @$"...." (I am not sure I did OK, pls test)
- fixed symbol rule for ?? and ??=
- don't highlight wrong #preprocessorwords
main Alexey
Posts: 2265
Joined: 25.08.2021 18:15

Post by main Alexey »

Updated C#:
highlight parts like '<Type1, Type2>` as single tokens, which allows to better show functions in code-tree. Before it could only show broken tree items for functions like
void T<T1,T2> { }.
Post Reply