From 9a66cc374298d15cbe6916fd7acb5f682e532347 Mon Sep 17 00:00:00 2001 From: mitchell Date: Sat, 18 Jul 2020 20:49:26 -0400 Subject: lexlua: Alias `lexer.fold*` to `lexer.property['fold*']`. This makes things simpler for applications that supply a Lua state; they do not have to manipulate property sets. --- lexlua/lexer.lua | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'lexlua/lexer.lua') diff --git a/lexlua/lexer.lua b/lexlua/lexer.lua index 72952c774..f35976df9 100644 --- a/lexlua/lexer.lua +++ b/lexlua/lexer.lua @@ -846,6 +846,31 @@ local M = {} -- found. -- @field style_at (table, Read-only) -- Table of style names at positions in the buffer starting from 1. +-- @field folding (boolean) +-- Whether or not folding is enabled. +-- This option is disabled by default. +-- This is an alias for `lexer.property['fold'] = '1|0'`. +-- @field fold_on_zero_sum_lines (boolean) +-- Whether or not to mark as a fold point lines that contain both an ending +-- and starting fold point. For example, `} else {` would be marked as a fold +-- point. +-- This option is disabled by default. +-- This is an alias for `lexer.property['fold.on.zero.sum.lines'] = '1|0'`. +-- @field fold_compact (boolean) +-- Whether or not blank lines after an ending fold point are included in that +-- fold. +-- This option is disabled by default. +-- This is an alias for `lexer.property['fold.compact'] = '1|0'`. +-- @field fold_by_indentation (boolean) +-- Whether or not to fold based on indentation level if a lexer does not have +-- a folder. +-- Some lexers automatically enable this option. It is disabled by default. +-- This is an alias for `lexer.property['fold.by.indentation'] = '1|0'`. +-- @field fold_line_comments (boolean) +-- Whether or not to fold multiple, consecutive line comments and only show +-- the top-level comment. +-- This option is disabled by default. +-- This is an alias for `lexer.property['fold.line.comments'] = '1|0'`. module('lexer')]=] if not require then -- cgit v1.2.3