Commit graph

11 commits

Author SHA1 Message Date
nightwing
d03889b01e remove trailing commas 2012-10-06 20:45:47 +04:00
Lennart Kats
8b971619b7 Add BSD license headers 2012-09-06 22:48:34 +02:00
Tim Starling
737e7e86dd Improved Lua indenting
* Support single-line blocks: don't indent the following line.
* Indent the line following a line with unclosed parentheses, such as a
  function call where some parameters are specified on the same line as
  the name.
* Use a negative next-line indent to restore the correct indenting level
  after the end of a multi-line parenthesized block where the ending
  parenthesis occurs with other text on the same line as it.
* Implement outdenting. Outdenting is triggered after "enter" is pressed,
  similar to the Python mode. This avoids problems with incomplete token
  information, e.g. outdenting when the user is halfway through typing a
  quoted string "the end is nigh", where "end" is recognised as a
  keyword until the right quote is present.

Of course it is still flawed, anything less than a complete Lua parser will
be flawed, but I'm pretty confident that the code here is better than
what came before.
2012-07-05 15:41:55 +10:00
Fabian Jakobs
ac364fe0c5 tabs to spaces 2012-05-01 12:07:44 +02:00
Fabian Jakobs
c08d09bfb4 use strict 2011-12-19 15:15:29 +01:00
Fabian Jakobs
65c0bd1213 cleanups 2011-12-19 15:15:17 +01:00
Fabian Jakobs
c043d14b8b use relative module ids to please node.js 2011-11-09 15:38:53 +01:00
Fabian Jakobs
b063b96230 move pilot code back into Ace
Conflicts:

	.gitmodules
	Makefile.dryice.js
	build_support/editor_textarea.html
	demo/demo.js
	kitchen-sink.html
	lib/ace/edit_session_test.js
	lib/ace/mode/coffee.js
	lib/ace/mode/coffee_highlight_rules.js
	lib/ace/mode/css.js
	lib/ace/mode/javascript.js
	lib/ace/model/window.js
	lib/ace/mouse/default_handlers.js
	lib/ace/theme/clouds.js
	lib/ace/theme/clouds_midnight.js
	lib/ace/theme/cobalt.js
	lib/ace/theme/crimson_editor.js
	lib/ace/theme/dawn.js
	lib/ace/theme/eclipse.js
	lib/ace/theme/idle_fingers.js
	lib/ace/theme/kr_theme.js
	lib/ace/theme/merbivore.js
	lib/ace/theme/merbivore_soft.js
	lib/ace/theme/mono_industrial.js
	lib/ace/theme/monokai.js
	lib/ace/theme/pastel_on_dark.js
	lib/ace/theme/solarized_dark.js
	lib/ace/theme/solarized_light.js
	lib/ace/theme/textmate.js
	lib/ace/theme/twilight.js
	lib/ace/theme/vibrant_ink.js
	lib/ace/view/measure_text.js
	lib/ace/virtual_renderer.js
	package.json
	support/paths.js
2011-11-02 18:18:51 +01:00
Lee Gao
db9862b3f7 Added indentation to lua 2011-08-18 20:23:31 -04:00
Lee Gao
adb1b2ce21 Removed unnecessary code for comment indentation 2011-08-18 18:55:25 -04:00
Lee Gao
4b83e01684 Added in Lua highlight rules 2011-08-18 17:55:33 -04:00