Christian Grasser a61b03ea88 Update Scintilla from v4.4.6 to v5.2.1 and add Lexilla v5.1.5
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
2022-03-27 17:12:53 +02:00

52 lines
546 B
GDScript

# Enumerate all styles: 0 to 15
# 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
func function_name():
pass
# operator=10
1 + 3
# identifier=11
var identifier = 2
# comment-block=12
## block
# unclosed-string=13
" unclosed
# highlighted-identifier=14
var hilight = 2
# annotation=15
@onready
var a = 3
@onready var b = 3