aboutsummaryrefslogtreecommitdiffhomepage
path: root/modules/lua
diff options
context:
space:
mode:
authorGravatar mitchell <70453897+667e-11@users.noreply.github.com>2011-06-25 18:05:44 -0400
committerGravatar mitchell <70453897+667e-11@users.noreply.github.com>2011-06-25 18:05:44 -0400
commitc494f4a2b14a2bd294ffdbe846fb29e887579199 (patch)
tree556651b3f73ba01ceb15f87d71e326192a9d241d /modules/lua
parentb4437d0fb741bf5d1a2e803391453793bfd28ad0 (diff)
Added 'fold.line.comments' option for folding multiple single-line comments.
Diffstat (limited to 'modules/lua')
-rw-r--r--modules/lua/api1
-rw-r--r--modules/lua/tags1
2 files changed, 2 insertions, 0 deletions
diff --git a/modules/lua/api b/modules/lua/api
index e3f9ceec..c6326438 100644
--- a/modules/lua/api
+++ b/modules/lua/api
@@ -971,6 +971,7 @@ focused_doc_pointer gui.focused_doc_pointer [number]\nThe pointer to the documen
fold lexer.fold(text, start_pos, start_line, start_level)\nFolds the given text. Called by LexLPeg.cxx; do not call from Lua. If the\ncurrent lexer has no _fold function, folding by indentation is performed if\nthe 'fold.by.indentation' property is set.\n@param text The document text to fold.\n@param start_pos The position in the document text starts at.\n@param start_line The line number text starts on.\n@param start_level The fold level text starts on.\n@return Table of fold levels.\n
fold_expanded buffer.fold_expanded [bool]\nExpanded state of a header line.\n
fold_level buffer.fold_level [table]\nTable of fold levels for lines starting from zero. Fold levels encodes an\ninteger level along witth flags indicating whether the line is a header and\nwhether it is effectively white space.\n * `_SCINTILLA.constants.SC_FOLDLEVELBASE` (0x400): Initial fold level.\n * `_SCINTILLA.constants.SC_FOLDLEVELWHITEFLAG` (0x1000): Indicates that\n the line is blank.\n * `_SCINTILLA.constants.SC_FOLDLEVELHEADERFLAG` (0x2000): Indicates\n that the line is a header (fold point).\n\n
+fold_line_comments lexer.fold_line_comments(prefix)\nReturns a fold function that folds consecutive line comments. This function\nshould be used inside the lexer's `_foldsymbols` table.\n@param prefix The prefix string defining a line comment.\n@usage [l.COMMENT] = { ['--'] = l.fold_line_comments('--') }\n@usage [l.COMMENT] = { ['//'] = l.fold_line_comments('//') }\n
fold_parent buffer.fold_parent [table]\nTable of parent line numbers for child lines starting from zero. -1 means\nno line was found. (Read-only)\n
font_quality buffer.font_quality [number]\nThe quality level for text. (Windows only)\n * `_SCINTILLA.constants.SC_EFF_QUALITY_DEFAULt` (0).\n * `_SCINTILLA.constants.SC_EFF_QUALITY_NON_ANTIALIASED` (1).\n * `_SCINTILLA.constants.SC_EFF_QUALITY_ANTIALIASED` (2).\n * `_SCINTILLA.constants.SC_EFF_QUALITY_LCD_OPTIMIZED` (3).\n\n
form_feed buffer.form_feed(buffer)\nInsert a Form Feed character.\n@param buffer The focused buffer.\n
diff --git a/modules/lua/tags b/modules/lua/tags
index cc7c406d..573b49f4 100644
--- a/modules/lua/tags
+++ b/modules/lua/tags
@@ -999,6 +999,7 @@ focused_doc_pointer _ 0;" F class:gui
fold _ 0;" f class:lexer
fold_expanded _ 0;" F class:buffer
fold_level _ 0;" F class:buffer
+fold_line_comments _ 0;" f class:lexer
fold_parent _ 0;" F class:buffer
font_quality _ 0;" F class:buffer
form_feed _ 0;" f class:buffer