Browse Source

* Src/Lexer/AbstractLexer.cs: Allow white spaces as symbol

separator.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@4007 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Mike Krüger 17 years ago
parent
commit
65e94963f5
  1. 2
      src/Libraries/NRefactory/Project/Src/Lexer/AbstractLexer.cs

2
src/Libraries/NRefactory/Project/Src/Lexer/AbstractLexer.cs

@ -49,7 +49,7 @@ namespace ICSharpCode.NRefactory.Parser
protected static IEnumerable<string> GetSymbols (string symbols) protected static IEnumerable<string> GetSymbols (string symbols)
{ {
if (!string.IsNullOrEmpty(symbols)) { if (!string.IsNullOrEmpty(symbols)) {
foreach (string symbol in symbols.Split (';')) { foreach (string symbol in symbols.Split (';', ' ', '\t')) {
string s = symbol.Trim (); string s = symbol.Trim ();
if (s.Length == 0) if (s.Length == 0)
continue; continue;

Loading…
Cancel
Save