mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-08-27 04:38:26 +02:00
Update with https://www.scintilla.org/scintilla521.zip https://www.scintilla.org/lexilla515.zip - fix setting to bring Scintilla::PositionCR from ScintillaStructures.h inline with Sci_Position.h Sci_PositionCR - add workaround to enable lexer for searchResult commented out SCI_SETILEXER call on searchResult to get one result which is correctly handled by the lexer, added comment about the current problem with property @MarkingsStruct which seems to disappear after call to SCI_SETILEXER or CreateLexer - corrected usage of ObjC lexer - removed unnecessary filter stuff - use own sections for scintilla and lexilla build targets and allow parallel builds - as libscilex is no longer existing, changed to libscintilla - adapt makefiles and cmake - use VS2019 - started simple changes for createlexer adaptations, nullpointercheck missing on return of lexer name from deprecated LexerNameFromID -> undefined behaviour - movement from id -> lexer name, mostly done via LexerNameFromID + switching off corresponding compiler warning - changed to SCI_SETILEXER from SCI_SETLEXER, SCI_SETLEXERLANGUAGE needs to be corrected, see Scintilla5Migration.html - just commented out: SCI_LOADLEXERLIBRARY Fix #10504, close #11419
64 lines
692 B
Python
64 lines
692 B
Python
# Enumerate all styles: 0 to 19
|
|
# comment=1
|
|
|
|
# whitespace=0
|
|
# w
|
|
|
|
# number=2
|
|
37
|
|
|
|
# double-quoted-string=3
|
|
"str"
|
|
|
|
# single-quoted-string=4
|
|
'str'
|
|
|
|
# keyword=5
|
|
pass
|
|
|
|
# triple-quoted-string=6
|
|
'''str'''
|
|
|
|
# triple-double-quoted-string=7
|
|
"""str"""
|
|
|
|
# class-name=8
|
|
class ClassName:
|
|
pass
|
|
|
|
# function-name=9
|
|
def function_name():
|
|
pass
|
|
|
|
# operator=10
|
|
1 + 3
|
|
|
|
# identifier=11
|
|
identifier = 2
|
|
|
|
# comment-block=12
|
|
## block
|
|
|
|
# unclosed-string=13
|
|
" unclosed
|
|
|
|
# highlighted-identifier=14
|
|
hilight = 2
|
|
|
|
# decorator=15
|
|
@staticmethod
|
|
def fn(): pass
|
|
|
|
a = 1
|
|
# double-quoted-f-string=16
|
|
f"{a}"
|
|
|
|
# single-quoted-f-string=17
|
|
f'{a}'
|
|
|
|
# triple-quoted-f-string=18
|
|
f'''{a}'''
|
|
|
|
# double-triple-quoted-f-string=19
|
|
f"""{a}"""
|