Skip to content

Commit

Permalink
[gui_extra] Disable code tokenisers. Broken on MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiashienzsch committed Oct 20, 2023
1 parent 2fd316e commit 77a6d25
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 54 deletions.
8 changes: 4 additions & 4 deletions module/lua_juce/lua_juce.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ auto allModules(sol::state& lua) -> void

// juce_gui_extra
juce_CodeDocument(table);
juce_CodeTokeniser(table);
juce_CPlusPlusCodeTokeniser(table);
juce_LuaTokeniser(table);
juce_XmlTokeniser(table);
// juce_CodeTokeniser(table);
// juce_CPlusPlusCodeTokeniser(table);
// juce_LuaTokeniser(table);
// juce_XmlTokeniser(table);

// juce_audio_processors
juce_AudioProcessor(table);
Expand Down
11 changes: 6 additions & 5 deletions module/lua_juce_gui_extra/lua_juce_gui_extra.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#include <lua_juce_gui_extra/lua_juce_gui_extra.hpp>

#include "code_editor/CPlusPlusCodeTokeniser.cpp" // NOLINT
#include "code_editor/CodeDocument.cpp" // NOLINT
#include "code_editor/CodeTokeniser.cpp" // NOLINT
#include "code_editor/LuaTokeniser.cpp" // NOLINT
#include "code_editor/XmlTokeniser.cpp" // NOLINT
#include "code_editor/CodeDocument.cpp" // NOLINT

// #include "code_editor/CPlusPlusCodeTokeniser.cpp" // NOLINT
// #include "code_editor/CodeTokeniser.cpp" // NOLINT
// #include "code_editor/LuaTokeniser.cpp" // NOLINT
// #include "code_editor/XmlTokeniser.cpp" // NOLINT
8 changes: 4 additions & 4 deletions module/lua_juce_gui_extra/lua_juce_gui_extra.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ END_JUCE_MODULE_DECLARATION

namespace lua_juce {
auto juce_CodeDocument(sol::table& state) -> void;
auto juce_CodeTokeniser(sol::table& state) -> void;
auto juce_CPlusPlusCodeTokeniser(sol::table& state) -> void;
auto juce_LuaTokeniser(sol::table& state) -> void;
auto juce_XmlTokeniser(sol::table& state) -> void;
// auto juce_CodeTokeniser(sol::table& state) -> void;
// auto juce_CPlusPlusCodeTokeniser(sol::table& state) -> void;
// auto juce_LuaTokeniser(sol::table& state) -> void;
// auto juce_XmlTokeniser(sol::table& state) -> void;
} // namespace lua_juce
34 changes: 0 additions & 34 deletions tool/jml-docgen/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,7 @@
- [ToggleButton](#ToggleButton)
- [TreeView](#TreeView)
- [juce_gui_extra](#juce_gui_extra)
- [CPlusPlusCodeTokeniser](#CPlusPlusCodeTokeniser)
- [CodeDocument](#CodeDocument)
- [CodeTokeniser](#CodeTokeniser)
- [LuaTokeniser](#LuaTokeniser)
- [XmlTokeniser](#XmlTokeniser)

## juce_audio_basics

Expand Down Expand Up @@ -1793,14 +1789,6 @@ juce.TreeView.setRootItemVisible(...)

## juce_gui_extra

## CPlusPlusCodeTokeniser

```lua
juce.CPlusPlusCodeTokeniser.__eq(...)
juce.CPlusPlusCodeTokeniser.isReservedKeyword(...)
juce.CPlusPlusCodeTokeniser.new(...)
```

## CodeDocument

```lua
Expand Down Expand Up @@ -1832,25 +1820,3 @@ juce.CodeDocument.setSavePoint(...)
juce.CodeDocument.undo(...)
juce.CodeDocument.writeToStream(...)
```

## CodeTokeniser

```lua
juce.CodeTokeniser.__eq(...)
juce.CodeTokeniser.getDefaultColourScheme(...)
juce.CodeTokeniser.new(...)
```

## LuaTokeniser

```lua
juce.LuaTokeniser.__eq(...)
juce.LuaTokeniser.new(...)
```

## XmlTokeniser

```lua
juce.XmlTokeniser.__eq(...)
juce.XmlTokeniser.new(...)
```
8 changes: 1 addition & 7 deletions tool/jml-docgen/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,7 @@ local classes = {
juce.ToggleButton.new(juce.String.new("")),
juce.TreeView.new(juce.String.new("")),
},
juce_gui_extra = {
juce.CodeDocument.new(),
juce.abstract.CodeTokeniser,
juce.CPlusPlusCodeTokeniser.new(),
juce.LuaTokeniser.new(),
juce.XmlTokeniser.new(),
},
juce_gui_extra = {juce.CodeDocument.new()},
juce_audio_processors = {juce.abstract.AudioProcessor},

}
Expand Down

0 comments on commit 77a6d25

Please sign in to comment.