mirror of
https://github.com/GrahamKracker/UnityExplorer.git
synced 2025-07-15 15:57:52 +08:00
A few important fixes
* Reflection on Il2CppSystem-namespace instances has been fixed * Type/Value Syntax highlighting generalized and improved globally * Scene changes now refresh the scene-picker dropdown * probably other minor stuff too
This commit is contained in:
@ -181,14 +181,17 @@ The following helper methods are available:
|
||||
|
||||
CurrentIndent = 0;
|
||||
|
||||
bool stringState = false;
|
||||
|
||||
for (int i = 0; i < caret && i < newText.Length; i++)
|
||||
{
|
||||
char character = newText[i];
|
||||
|
||||
if (character == CSharpLexer.indentOpen)
|
||||
if (character == '"')
|
||||
stringState = !stringState;
|
||||
else if (!stringState && character == CSharpLexer.indentOpen)
|
||||
CurrentIndent++;
|
||||
|
||||
if (character == CSharpLexer.indentClose)
|
||||
else if (!stringState && character == CSharpLexer.indentClose)
|
||||
CurrentIndent--;
|
||||
}
|
||||
|
||||
|
@ -17,8 +17,8 @@ namespace UnityExplorer.Console.Lexer
|
||||
|
||||
public override bool IsImplicitMatch(CSharpLexer lexer)
|
||||
{
|
||||
if (!char.IsWhiteSpace(lexer.Previous) &&
|
||||
!lexer.IsSpecialSymbol(lexer.Previous, DelimiterType.End))
|
||||
if (!char.IsWhiteSpace(lexer.Previous) ||
|
||||
lexer.IsSpecialSymbol(lexer.Previous, DelimiterType.End))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user