diff options
Diffstat (limited to 'src/LexSpice.cxx')
-rw-r--r-- | src/LexSpice.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/LexSpice.cxx b/src/LexSpice.cxx index b2953c001..6aa2e8fdc 100644 --- a/src/LexSpice.cxx +++ b/src/LexSpice.cxx @@ -10,6 +10,8 @@ #include <string.h> #include <stdio.h> +#include <string> + #include "Platform.h" #include "Accessor.h" @@ -17,7 +19,6 @@ #include "PropSet.h" #include "KeyWords.h" #include "SciLexer.h" -#include "SString.h" #ifdef SCI_NAMESPACE using namespace Scintilla; @@ -75,7 +76,7 @@ static void ColouriseDelimiter(StyleContext& sc, bool& apostropheStartsAttribute static void ColouriseNumber(StyleContext& sc, bool& apostropheStartsAttribute) { apostropheStartsAttribute = true; - SString number; + std::string number; sc.SetState(SCE_SPICE_NUMBER); // Get all characters up to a delimiter or a separator, including points, but excluding // double points (ranges). @@ -104,7 +105,7 @@ static void ColouriseWhiteSpace(StyleContext& sc, bool& ) { static void ColouriseWord(StyleContext& sc, WordList& keywords, WordList& keywords2, WordList& keywords3, bool& apostropheStartsAttribute) { apostropheStartsAttribute = true; sc.SetState(SCE_SPICE_IDENTIFIER); - SString word; + std::string word; while (!sc.atLineEnd && !IsSeparatorOrDelimiterCharacter(sc.ch)) { word += static_cast<char>(tolower(sc.ch)); sc.Forward(); |