aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexers/LexCoffeeScript.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'lexers/LexCoffeeScript.cxx')
-rw-r--r--lexers/LexCoffeeScript.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/lexers/LexCoffeeScript.cxx b/lexers/LexCoffeeScript.cxx
index 63ee172e2..b835c52ec 100644
--- a/lexers/LexCoffeeScript.cxx
+++ b/lexers/LexCoffeeScript.cxx
@@ -14,6 +14,8 @@
#include <assert.h>
#include <ctype.h>
+#include <algorithm>
+
#include "Platform.h"
#include "ILexer.h"
#include "Scintilla.h"
@@ -427,7 +429,7 @@ static void FoldCoffeeScriptDoc(Sci_PositionU startPos, Sci_Position length, int
}
const int levelAfterComments = indentNext & SC_FOLDLEVELNUMBERMASK;
- const int levelBeforeComments = Platform::Maximum(indentCurrentLevel,levelAfterComments);
+ const int levelBeforeComments = std::max(indentCurrentLevel,levelAfterComments);
// Now set all the indent levels on the lines we skipped
// Do this from end to start. Once we encounter one line