From 42f04699d6df2d5b144533737a8f2f7e0814ad85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Sun, 19 Mar 2017 11:51:00 +0100 Subject: 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. --- sam.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'sam.c') 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, -- cgit v1.2.3