diff options
Diffstat (limited to 'comphelper/source/misc/syntaxhighlight.cxx')
-rw-r--r-- | comphelper/source/misc/syntaxhighlight.cxx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/comphelper/source/misc/syntaxhighlight.cxx b/comphelper/source/misc/syntaxhighlight.cxx index bdf9d43e41fc..c9bac083beb6 100644 --- a/comphelper/source/misc/syntaxhighlight.cxx +++ b/comphelper/source/misc/syntaxhighlight.cxx @@ -257,7 +257,6 @@ namespace class SyntaxHighlighter::Tokenizer { - HighlighterLanguage aLanguage; // Character information tables sal_uInt16 aCharTypeTab[256]; @@ -272,7 +271,9 @@ class SyntaxHighlighter::Tokenizer sal_uInt16 nKeyWordCount; public: - Tokenizer( HighlighterLanguage aLang = HIGHLIGHT_BASIC ); + HighlighterLanguage const aLanguage; + + Tokenizer( HighlighterLanguage aLang ); ~Tokenizer( void ); void getHighlightPortions( const OUString& rLine, @@ -710,4 +711,9 @@ void SyntaxHighlighter::getHighlightPortions( const OUString& rLine, m_tokenizer->getHighlightPortions( rLine, portions ); } +HighlighterLanguage SyntaxHighlighter::GetLanguage() +{ + return m_tokenizer->aLanguage; +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |