Skip to content

Latest commit

 

History

History
92 lines (78 loc) · 2.8 KB

TODO

File metadata and controls

92 lines (78 loc) · 2.8 KB

Useful resources

Fontify function parameters as variable names

Fontify variable names in line-continuation statements

  • local foo,bar,baz = xyz,xyyz,xyyz
  • function xyzzy( foo, bar, baz )

left-shift parenthesis that closes function parameter block

local foobar = function( param1, param2, param3 ) dosmth() end

issue #33

a = { } b = { }

finish works in lua-compat branch for Emacs21/Emacs22

put text property ‘lua-last-stmt-begin

  • continuation-line detection becomes a one-liner
  • multiline fontification becomes easier
  • beginning-of-defun is a one-liner
  • if property value is a marker, it will get updated on each edit, that’s not necessary and might cause performance impact
  • if property value is an integer, it needs to be updated before use
    1. `buffer-access-fontify-functions’ / `buffer-access-fontified-property’
    2. maintain `stmt-begin-up-to-date-pos’ point
      • after-change function sets `stmt-begin-up-to-date-pos’ to (line-beginning-position)
      • (defun get-stmt-beginning-pos (pos) …)
  • (when (< stmt-begin-up-to-date-pos pos) … (setq stmt-begin-up-to-date-pos pos))
    • return property at position pos

Support line-continuation statements [0/2]

  • [ ] assignments x,y = long_value, other_long_value
  • [ ] `for … do’ operators

update site [0/2]

reuse section-aware template

add section for release downloading

[#C] Improve lua-prefix-key machinery [0/2]

  • [ ] add docs
  • [ ] improve setting prefix-key Currently, prefix-key is parsed from a macro string (which may contain more than one key) and all keys but the first one are silently removed. Maybe there’s a better way to do it.

Fix braces/parens that reduce indent by const offset

this causes wrong behavior when indented block was anchored to first line, e.g. my_func( hello, world )

lua-mark-all-multiline-literals [5/5]

  • [X] process –[[ as multiline comment
  • [X] process —[[ as single-line comment distinguish by syntax state of last dash before square bracket
  • [X] don’t recognize [[ in comments or literals
  • [X] extend region backwards if BEGIN is inside multiline literal
  • [X] don’t change buffer-modified-p state

[#C] Redo syntax engine using semantic/wisent