Commits on Oct 1, 2016
  1. Improve test coverage

    randstr committed Oct 1, 2016
Commits on Sep 30, 2016
  1. Use upvalue for iterator counter

    randstr committed Sep 30, 2016
Commits on Sep 29, 2016
  1. Bump version to 0.2.0

    randstr committed Sep 29, 2016
  2. Update

    randstr committed Sep 28, 2016
  3. Simplify error message handling

    The use of the garbage collector to dispose of the editorconfig_handle
    removes the need to copy the error strings to the stack.
    randstr committed Sep 29, 2016
Commits on Sep 27, 2016
Commits on Sep 19, 2016
  1. Fix rockspec URL

    Botched that copy paste job.
    randstr committed Sep 19, 2016
  2. Version bump to "0.1.2"

    randstr committed Sep 19, 2016
  3. Use "scm" instead of "git" in rockspec

    That seems to be the conventional name in use for HEAD.
    randstr committed Sep 19, 2016
Commits on Sep 18, 2016
  1. Make the build compatible with Lua 5.2

    Drop incorrect 5.1 compatibility in the rockspec.
    Fix configuration of include headers.
    randstr committed Sep 18, 2016
  2. Fix usage example

    randstr committed Sep 18, 2016
  3. Fix another typo

    randstr committed Sep 18, 2016
  4. fixup

    randstr committed Sep 18, 2016
  5. Add rockspec and installation notes to

    Remove CMake install step too, in favor of using LuaRocks.
    For now we use the LuaRocks builtin build driver instead of CMake. It's
    simple enough and avoids the extra dependency. Can always be changed later.
    randstr committed Sep 18, 2016
Commits on Sep 17, 2016
  1. Return two tables instead of a single one

    Make parse() return a map and an array. This is the proper Lua convention
    (and all around better).
    randstr committed Sep 17, 2016
  2. Add support for editorconfig -b flag (set version)

    This is mainly used for testing. The parameters to parse() are passad
    in an array (one mandatory, two optional).
    All tests are passing now. The tests on limits require EditorConfig C
    Core 0.12.2.
    randstr committed Sep 17, 2016
Commits on Sep 15, 2016
  1. Add CMake build and editorconfig-core-test test suite

    The property table iteration order needs to be the stable
    and identical to that returned by the C library to pass the
    test suit. Therefore the parse() function now returns
      t = { keys; keys = values}
    This allows iterating in order using
      for _, k in ipairs(t) do print(k, t[k]) end
    This also allows obtaining the property count as #t.
    Remove Makefile and build using ISO C99.
    Add optional 'conf_file' argument to editorconfig_core.parse()
    Add CLI Lua EditorConfig script (for testing). Same interface as
    /usr/bin/editorconfig (work in progress).
    Fix version string to pass tests and add an optional suffix.
    Lastly roll back on the idea of having tokens for property
    values, at least until the test suite passes at 100%.
      97% tests passed, 5 tests failed out of 179
      Total Test time (real) =   0.50 sec
      The following tests FAILED:
      	117 - indent_size_default_pre_0_9_0 (Failed)
    	157 - max_property_name (Failed)
    	158 - max_property_value (Failed)
    	159 - max_section_name_ok (Failed)
    	160 - max_section_name_ignore (Failed)
    randstr committed Sep 15, 2016
Commits on Sep 12, 2016
  1. Initial implementation of EditorConfig Lua bindings

    The C API editorconfig_parse() function is made available in the
    parse() function of the "editorconfig_core" module. It returns
    a table with each key as a name string and the value as a Lua
    type. Many values for known property names are tokens defined
    in the module namespace (instead of plain EC value strings).
    randstr committed Sep 10, 2016
Commits on Sep 10, 2016
  1. Initial commit

    randstr committed Sep 10, 2016