diff --git a/.travis.yml b/.travis.yml
index df9b003..46c010b 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -18,11 +18,13 @@ before_script:
- cd ewol; git checkout origin/dev -b dev; cd ..
- cd ewol; git submodule init; cd ..
- cd ewol; git submodule update; cd ..
+ - if [ "$CXX" == "clang++" ]; then BUILDER=clang; else BUILDER=gcc; fi
#install Gcc to have lisstdc++ 4.8 & gcc 4.8
install:
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
- sudo apt-get update -qq
+ - sudo apt-get install -qq libstdc++-4.9-dev
- sudo apt-get install -qq g++-4.8
- sudo rm /usr/bin/gcc /usr/bin/g++
- sudo ln -s /usr/bin/gcc-4.8 /usr/bin/gcc
@@ -30,8 +32,7 @@ install:
# build sequence with Lutin :
script:
- - if [ "$CXX" == "clang++" ]; then ./ewol/build/lutin.py -C -P -cclang -mdebug -p edn; fi
- - if [ "$CXX" == "g++" ]; then ./ewol/build/lutin.py -C -P -cgcc -mdebug -p edn; fi
+ - ./ewol/build/lutin.py -C -P -c$BUILDER -mdebug -p edn
#send e-mail on compilation result:
notifications:
diff --git a/data/languages/cpp/highlight.xml b/data/languages/cpp/highlight.xml
index 8445fe5..2fc4c71 100644
--- a/data/languages/cpp/highlight.xml
+++ b/data/languages/cpp/highlight.xml
@@ -40,7 +40,7 @@
doubleQuoteText
- "(.|\\[\\"])*?"
+ (U|u|u8)?"(.|\\[\\"])*?"
doubleQuoteText
@@ -66,11 +66,11 @@
type
- \bstd::[\w:]*\b
+ \b(std(11)?|boost)::[\w:]*\b
storageKeyword
- \b(inline|const|class|namespace|virtual|private|public|protected|friend|const|extern|auto|register|static|unsigned|signed|volatile|char|double|float|int|long|short|void|typedef|struct|union|enum)\b
+ \b(inline|const|class|namespace|virtual|private|public|protected|friend|const|extern|mutable|auto|register|static|unsigned|signed|volatile|char|double|float|int|long|short|void|typedef|struct|union|enum)\b
commonDefine
@@ -78,7 +78,7 @@
number
- \b(((0(x|X)[0-9a-fA-F]*)|(\d+\.?\d*|\.\d+)((e|E)(\+|\-)?\d+)?)(L|l|UL|ul|u|U|F|f)?)\b
+ \b(((0(x|X)[0-9a-fA-F]*)|(\d+\.?\d*|\.\d+)((e|E)(\+|\-)?\d+)?)(LL|L|l|UL|ul|u|U|F|f)?)\b
boolean
diff --git a/data/languages/json/highlight.xml b/data/languages/json/highlight.xml
index d48b7fa..fdde185 100644
--- a/data/languages/json/highlight.xml
+++ b/data/languages/json/highlight.xml
@@ -6,6 +6,10 @@
doubleQuoteText
"(.|\\[\\"])*?"
+
+ comment
+ #.*
+
diff --git a/sources/appl/Buffer.h b/sources/appl/Buffer.h
index b77e1af..a0c23e2 100644
--- a/sources/appl/Buffer.h
+++ b/sources/appl/Buffer.h
@@ -12,7 +12,6 @@
#include
#include
#include
-#include
#include
#include
#include
diff --git a/sources/appl/Highlight.h b/sources/appl/Highlight.h
index 3f9966d..1c750bc 100644
--- a/sources/appl/Highlight.h
+++ b/sources/appl/Highlight.h
@@ -27,7 +27,6 @@ namespace appl {
#include
#include
#include
-#include
#include
namespace appl {
diff --git a/sources/appl/HighlightPattern.h b/sources/appl/HighlightPattern.h
index 56c37eb..6e7b299 100644
--- a/sources/appl/HighlightPattern.h
+++ b/sources/appl/HighlightPattern.h
@@ -18,7 +18,6 @@ class HighlightPattern;
#include
#include
#include
-#include
enum resultFind {
HLP_FIND_ERROR,
diff --git a/sources/appl/debug.h b/sources/appl/debug.h
index 2b07d37..bf87220 100644
--- a/sources/appl/debug.h
+++ b/sources/appl/debug.h
@@ -14,16 +14,7 @@
namespace appl {
int32_t getLogId();
};
-// TODO : Review this problem of multiple intanciation of "std::stringbuf sb"
-#define APPL_BASE(info,data) \
- do { \
- if (info <= etk::log::getLevel(appl::getLogId())) { \
- std::stringbuf sb; \
- std::ostream tmpStream(&sb); \
- tmpStream << data; \
- etk::log::logStream(appl::getLogId(), info, __LINE__, __class__, __func__, tmpStream); \
- } \
- } while(0)
+#define APPL_BASE(info,data) TK_LOG_BASE(appl::getLogId(),info,data)
#define APPL_CRITICAL(data) APPL_BASE(1, data)
#define APPL_ERROR(data) APPL_BASE(2, data)