Skip to content

Commit

Permalink
Minor update Dart type highlighting.
Browse files Browse the repository at this point in the history
  • Loading branch information
zufuliu committed Oct 6, 2023
1 parent 631662f commit 96dcae8
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 1 deletion.
2 changes: 2 additions & 0 deletions scintilla/lexers/LexCSharp.cxx
Expand Up @@ -378,6 +378,8 @@ void ColouriseCSharpDoc(Sci_PositionU startPos, Sci_Position lengthDoc, int init
// type<type>
// type<type?>
// type<type<type>>
// type<type, type>
// class type: type, interface {}
// type identifier
sc.ChangeState(IsInterfaceName(s[0], s[1]) ? SCE_CSHARP_INTERFACE : SCE_CSHARP_CLASS);
}
Expand Down
4 changes: 3 additions & 1 deletion scintilla/lexers/LexDart.cxx
Expand Up @@ -182,7 +182,7 @@ void ColouriseDartDoc(Sci_PositionU startPos, Sci_Position lengthDoc, int initSt
if (visibleChars == sc.LengthCurrent()) {
lineStateLineType = DartLineStateMaskImport;
}
} else if (StrEqualsAny(s, "class", "extends", "implements", "new", "throw", "as", "is")) {
} else if (StrEqualsAny(s, "class", "extends", "implements", "new", "throw", "with", "as", "is", "on")) {
kwType = KeywordType::Class;
} else if (StrEqual(s, "enum")) {
kwType = KeywordType::Enum;
Expand Down Expand Up @@ -228,6 +228,8 @@ void ColouriseDartDoc(Sci_PositionU startPos, Sci_Position lengthDoc, int initSt
// type<type>
// type<type?>
// type<type<type>>
// type<type, type>
// class type implements interface, interface {}
// type identifier
// type? identifier
sc.ChangeState(SCE_DART_CLASS);
Expand Down
2 changes: 2 additions & 0 deletions scintilla/lexers/LexGroovy.cxx
Expand Up @@ -289,6 +289,8 @@ void ColouriseGroovyDoc(Sci_PositionU startPos, Sci_Position lengthDoc, int init
// type<>, type<?>, type<? super T>
// type<type>
// type<type<type>>
// type<type, type>
// class type implements interface, interface {}
sc.ChangeState(SCE_GROOVY_CLASS);
} else if (IsIdentifierStartEx(chNext)) {
// type identifier
Expand Down
1 change: 1 addition & 0 deletions scintilla/lexers/LexHaxe.cxx
Expand Up @@ -198,6 +198,7 @@ void ColouriseHaxeDoc(Sci_PositionU startPos, Sci_Position lengthDoc, int initSt
// type[]
// type<type>
// type<type<type>>
// type<type, type>
sc.ChangeState(SCE_HAXE_CLASS);
}
}
Expand Down
2 changes: 2 additions & 0 deletions scintilla/lexers/LexJava.cxx
Expand Up @@ -319,6 +319,8 @@ void ColouriseJavaDoc(Sci_PositionU startPos, Sci_Position lengthDoc, int initSt
// type<>, type<?>, type<? super T>
// type<type>
// type<type<type>>
// type<type, type>
// class type implements interface, interface {}
// type identifier
sc.ChangeState(SCE_JAVA_CLASS);
}
Expand Down
2 changes: 2 additions & 0 deletions scintilla/lexers/LexJavaScript.cxx
Expand Up @@ -263,6 +263,8 @@ void ColouriseJsDoc(Sci_PositionU startPos, Sci_Position lengthDoc, int initStyl
// type<type>
// type<type?>
// type<type<type>>
// type<type, type>
// class type implements interface, interface {}
sc.ChangeState(SCE_JS_CLASS);
}
}
Expand Down
2 changes: 2 additions & 0 deletions scintilla/lexers/LexKotlin.cxx
Expand Up @@ -202,6 +202,8 @@ void ColouriseKotlinDoc(Sci_PositionU startPos, Sci_Position lengthDoc, int init
// type<type>
// type<type?>
// type<type<type>>
// type<type, type>
// class type: type, interface {}
sc.ChangeState(SCE_KOTLIN_CLASS);
}
}
Expand Down
2 changes: 2 additions & 0 deletions scintilla/lexers/LexSwift.cxx
Expand Up @@ -241,8 +241,10 @@ void ColouriseSwiftDoc(Sci_PositionU startPos, Sci_Position lengthDoc, int initS
// type<type>
// type<type?>
// type<type<type>>
// type<type, type>
// [type]()
// [[type]]()
// class type: protocol, protocol {}
sc.ChangeState(SCE_SWIFT_CLASS);
}
}
Expand Down

0 comments on commit 96dcae8

Please sign in to comment.