aboutsummaryrefslogtreecommitdiff
path: root/sam.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2017-03-19 11:51:00 +0100
committerMarc André Tanner <mat@brain-dump.org>2017-03-19 14:58:06 +0100
commit42f04699d6df2d5b144533737a8f2f7e0814ad85 (patch)
tree3d69b94c221e3b91749b7f09b7f4da89839206ca /sam.c
parent8919fd1cbeef89aa3a5fce9c00aa708335e1de85 (diff)
downloadvis-42f04699d6df2d5b144533737a8f2f7e0814ad85.tar.gz
vis-42f04699d6df2d5b144533737a8f2f7e0814ad85.tar.xz
Move :set syntax option implementation to lua
It is no longer possible to change the used syntax by assigning to the `win.syntax = name` field, instead the function win:set_syntax(name)` should be called. The distinction between filetype and syntax lexer to use should probably be clarified/cleaned up at some point.
Diffstat (limited to 'sam.c')
-rw-r--r--sam.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/sam.c b/sam.c
index b287585..473da2b 100644
--- a/sam.c
+++ b/sam.c
@@ -281,7 +281,6 @@ enum {
OPTION_EXPANDTAB,
OPTION_TABWIDTH,
OPTION_THEME,
- OPTION_SYNTAX,
OPTION_SHOW_SPACES,
OPTION_SHOW_TABS,
OPTION_SHOW_NEWLINES,
@@ -325,11 +324,6 @@ static const OptionDef options[] = {
VIS_OPTION_TYPE_STRING,
VIS_HELP("Color theme to use filename without extension")
},
- [OPTION_SYNTAX] = {
- { "syntax" },
- VIS_OPTION_TYPE_STRING|VIS_OPTION_VALUE_OPTIONAL|VIS_OPTION_NEED_WINDOW,
- VIS_HELP("Syntax highlighting lexer to use filename without extension")
- },
[OPTION_SHOW_SPACES] = {
{ "show-spaces" },
VIS_OPTION_TYPE_BOOL|VIS_OPTION_NEED_WINDOW,