aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexers/LexHaskell.cxx
diff options
context:
space:
mode:
authorkudah <kudahkukarek@gmail.com>2013-05-13 22:43:50 +0300
committerkudah <kudahkukarek@gmail.com>2013-05-13 22:43:50 +0300
commit90ce12b8ea4aa3464b108012f9f814cf822672a2 (patch)
treecc683efc27277e4eaaa02278b2f30ce87d3ffaad /lexers/LexHaskell.cxx
parentdf2708a7fcb804156a482546bfcc8ae887c49359 (diff)
downloadscintilla-mirror-90ce12b8ea4aa3464b108012f9f814cf822672a2.tar.gz
get rid of msvc warning
Diffstat (limited to 'lexers/LexHaskell.cxx')
-rw-r--r--lexers/LexHaskell.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/lexers/LexHaskell.cxx b/lexers/LexHaskell.cxx
index 7e677e4ff..38533d1b0 100644
--- a/lexers/LexHaskell.cxx
+++ b/lexers/LexHaskell.cxx
@@ -222,7 +222,7 @@ struct OptionSetHaskell : public OptionSet<OptionsHaskell> {
};
class LexerHaskell : public ILexer {
- const bool literate;
+ bool literate;
int firstImportLine;
WordList keywords;
WordList ffi;
@@ -285,7 +285,7 @@ class LexerHaskell : public ILexer {
}
};
- inline void skipMagicHash(StyleContext &sc, const HashCount hashes) {
+ inline void skipMagicHash(StyleContext &sc, const HashCount hashes) const {
if (options.magicHash && sc.ch == '#') {
sc.Forward();
if (hashes == twoHashes && sc.ch == '#') {
@@ -298,7 +298,7 @@ class LexerHaskell : public ILexer {
}
}
- bool LineContainsImport(const int line, Accessor &styler) {
+ bool LineContainsImport(const int line, Accessor &styler) const {
if (options.foldImports) {
int currentPos = styler.LineStart(line);
int style = styler.StyleAt(currentPos);
@@ -495,7 +495,7 @@ void SCI_METHOD LexerHaskell::Lex(unsigned int startPos, int length, int initSty
sc.Forward();
if (sc.Match("\\begin{code}")) {
- sc.Forward(strlen("\\begin{code}"));
+ sc.Forward(static_cast<int>(strlen("\\begin{code}")));
bool correct = true;
@@ -516,7 +516,7 @@ void SCI_METHOD LexerHaskell::Lex(unsigned int startPos, int length, int initSty
&& sc.Match("\\end{code}")) {
sc.SetState(SCE_HA_LITERATE_CODEDELIM);
- sc.Forward(strlen("\\end{code}"));
+ sc.Forward(static_cast<int>(strlen("\\end{code}")));
while (!sc.atLineEnd && sc.More()) {
sc.Forward();