@@ -43,8 +43,7 @@ public partial class EditorElement
4343
4444 // TODO Add EnumStructs
4545 private SMMethodmap [ ] methodMaps ;
46- private SMVariable [ ] smVariables ;
47-
46+
4847 private readonly Regex multilineCommentRegex = new Regex ( @"/\*.*?\*/" ,
4948 RegexOptions . Compiled | RegexOptions . ExplicitCapture | RegexOptions . Singleline ) ;
5049
@@ -71,7 +70,6 @@ public void LoadAutoCompletes()
7170 acEntrys = def . ProduceACNodes ( ) ;
7271 isEntrys = def . ProduceISNodes ( ) ;
7372 methodMaps = def . Methodmaps . ToArray ( ) ;
74- smVariables = def . Variables . ToArray ( ) ;
7573 AutoCompleteBox . ItemsSource = acEntrys ;
7674 MethodAutoCompleteBox . ItemsSource = isEntrys ;
7775 }
@@ -88,7 +86,6 @@ public void InterruptLoadAutoCompletes(string[] FunctionStrings, SMFunction[] Fu
8886 AutoCompleteBox . ItemsSource = acEntrys ;
8987 MethodAutoCompleteBox . ItemsSource = isEntrys ;
9088 methodMaps = newMethodMaps ;
91- smVariables = newVariables ;
9289 } ) ;
9390 }
9491
@@ -135,8 +132,10 @@ private void EvaluateIntelliSense()
135132 {
136133 if ( c == '#' )
137134 {
138- HideISAC ( ) ;
139- return ;
135+ string [ ] prep = { "define" , "pragma" , "file" , "if" } ;
136+ acEntrys = ACNode . ConvertFromStringArray ( prep , false , "#" ) . ToArray ( ) ;
137+ // HideISAC();
138+ break ;
140139 }
141140
142141 if ( ! char . IsWhiteSpace ( c ) ) break ;
@@ -214,7 +213,6 @@ private void EvaluateIntelliSense()
214213 var classMatch = match . Groups [ "class" ] . Value ;
215214 if ( classMatch . Length > 0 )
216215 {
217-
218216 var methodMap = methodMaps . FirstOrDefault ( e => e . Name == classMatch ) ;
219217 var method =
220218 methodMap ? . Methods . FirstOrDefault ( e => e . Name == methodString ) ;
@@ -397,7 +395,7 @@ private bool ISAC_EvaluateKeyDownEvent(Key k)
397395 }
398396 }
399397
400- editor . Document . Replace ( endOffset , length + 1 , replaceString ) ;
398+ editor . Document . Replace ( endOffset , length + 1 , replaceString ) ;
401399 if ( setCaret )
402400 editor . CaretOffset -= 1 ;
403401 return true ;
0 commit comments