Skip to content

Commit 70d8055

Browse files
committed
refactor lua syntax
1 parent 7c8bbf3 commit 70d8055

File tree

219 files changed

+10547
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

219 files changed

+10547
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,4 @@ out
3535
cmake-build-debug
3636
cmake-build-release
3737
cmake-build-debug-visual-studio
38+
LuaCompile/gen/target

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ if(APPLE)
2222
endif ()
2323

2424
add_subdirectory(LuaParser)
25+
add_subdirectory(LuaCompile)
2526
add_subdirectory(CodeFormatCore)
2627
add_subdirectory(Util)
2728

CodeFormatServer/src/Lib/LineIndex/LineIndex.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#pragma once
22

33
#include <vector>
4-
4+
#include <string>
55
#include "LineTypes.h"
66

77
class LineIndex {

LuaCompile/CMakeLists.txt

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
cmake_minimum_required(VERSION 3.14)
2+
3+
project(LuaCompile)
4+
5+
add_library(LuaCompile STATIC)
6+
7+
target_include_directories(LuaCompile
8+
PUBLIC
9+
include
10+
)
11+
12+
13+
add_subdirectory(src/Lib)
14+
add_subdirectory(src/Lua)
15+
add_subdirectory(src/Workspace)
16+
17+
target_link_libraries(
18+
LuaCompile
19+
PUBLIC
20+
Util
21+
)
22+
23+
if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
24+
target_compile_options(LuaCompile PRIVATE /W3 /WX)
25+
target_compile_options(LuaCompile PRIVATE /utf-8)
26+
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
27+
target_compile_options(Core PRIVATE -Wall -Werror)
28+
endif ()

0 commit comments

Comments
 (0)