diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2014-07-27 14:01:22 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-07-27 14:01:22 -0300 |
commit | 66bc13163398786c88e20b7cdd61c66978b4d3fb (patch) | |
tree | 8bc79d3fd093b5f5ec5d3417cda53ecdbc6cecf8 /test/unit/formatc.lua | |
parent | 9550beda61ea74a2a9738e9c10423fa817b7b897 (diff) | |
parent | 974752c53b7c84a19f3028286b9ea88195eb3d4e (diff) | |
download | rneovim-66bc13163398786c88e20b7cdd61c66978b4d3fb.tar.gz rneovim-66bc13163398786c88e20b7cdd61c66978b4d3fb.tar.bz2 rneovim-66bc13163398786c88e20b7cdd61c66978b4d3fb.zip |
Merge pull request #978 '[RDY] implement system() with pipes'
Diffstat (limited to 'test/unit/formatc.lua')
-rw-r--r-- | test/unit/formatc.lua | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/test/unit/formatc.lua b/test/unit/formatc.lua index e63ff369f2..dc1fb3fd9c 100644 --- a/test/unit/formatc.lua +++ b/test/unit/formatc.lua @@ -176,9 +176,10 @@ local function formatc(str) end_at_brace = false end elseif typ == 'identifier' then - -- static usually indicates an inline header function, which has no - -- trailing ';', so we have to add a newline after the '}' ourselves. - if token[1] == 'static' then + -- static and/or inline usually indicate an inline header function, + -- which has no trailing ';', so we have to add a newline after the + -- '}' ourselves. + if token[1] == 'static' or token[1] == 'inline' then end_at_brace = true end elseif typ == 'preprocessor' then @@ -217,6 +218,8 @@ local function standalone(...) require "moonscript" Preprocess = require("preprocess") Preprocess.add_to_include_path('./../../src') + Preprocess.add_to_include_path('./../../build/include') + Preprocess.add_to_include_path('./../../.deps/usr/include') input = Preprocess.preprocess_stream(arg[1]) local raw = input:read('*all') |