Fix for state change without state name passing syntax-check.

git-svn-id: https://lsleditor.svn.sourceforge.net/svnroot/lsleditor@60 3f4676ac-adda-40fd-8265-58d1435b1672
This commit is contained in:
niel-archer 2011-12-30 03:51:29 +00:00
parent 370abf4699
commit c12d97756b

View file

@ -175,7 +175,7 @@ namespace LSLEditor
// State change, excluding global functions // State change, excluding global functions
regex = new Regex( regex = new Regex(
@"(\s+)state\s+(\w*)(\s*;)", @"(\s+)state\s+(\w+)(\s*;)",
RegexOptions.IgnorePatternWhitespace RegexOptions.IgnorePatternWhitespace
| RegexOptions.Compiled | RegexOptions.Compiled
); );