From 078fe50351224d28592f1b2907585bd4fa551adf Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 12 Sep 2018 01:23:02 +0200 Subject: Allow '+' character in dependency name --- .vscode/c_cpp_properties.json | 17 +++++++++++++++++ project.conf | 4 ++-- src/Conf.cpp | 2 +- 3 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 .vscode/c_cpp_properties.json diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json new file mode 100644 index 0000000..10acb77 --- /dev/null +++ b/.vscode/c_cpp_properties.json @@ -0,0 +1,17 @@ +{ + "configurations": [ + { + "name": "Linux", + "includePath": [ + "${workspaceFolder}/**" + ], + "defines": [], + "compilerPath": "/usr/bin/gcc", + "cStandard": "c11", + "cppStandard": "c++14", + "intelliSenseMode": "clang-x64", + "compileCommands": "${workspaceFolder}/compile_commands.json" + } + ], + "version": 4 +} diff --git a/project.conf b/project.conf index ddca7ec..f1c2b23 100644 --- a/project.conf +++ b/project.conf @@ -1,10 +1,10 @@ [package] name = "sibs" type = "executable" -version = "0.1.3" +version = "0.1.4" authors = ["DEC05EBA <0xdec05eba@gmail.com>"] tests = "tests" -platforms = ["linux32", "linux64", "win64"] +platforms = ["linux32", "linux64", "win32", "win64"] ignore_dirs = ["cmake", "cmake-build-debug", "build", "distribute", "examples"] [dependencies] diff --git a/src/Conf.cpp b/src/Conf.cpp index c71c7bc..6a8de19 100644 --- a/src/Conf.cpp +++ b/src/Conf.cpp @@ -189,7 +189,7 @@ namespace sibs bool isIdentifierChar(u32 c) { - return isAlpha(c) || isDigit(c) || c == '_' || c == '-' || c == '.'; + return isAlpha(c) || isDigit(c) || c == '_' || c == '-' || c == '.' || c == '+'; } private: u8string code; -- cgit v1.2.3