From cefe7e65281a34c20da7288618d1df11d3b9db28 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Wed, 12 Mar 2025 14:06:58 +0300 Subject: sciteco lexer: enable 2-char soft tabs by default * You practically never want to indent in SciTECO code with hard tabs, as the hard tab is an insertion command. * 2-char soft tabs are the convention in SciTECO's included macros. * Fixes the M#it macro among other things. * If you do want to insert an insertion-with-tab command (ASCII 9), you almost always will want to type it ^I instead. Real ASCII 9s should consequently be highlighted, ie. there should be a character representation. Unfortunately, character representations are currently set in C code and cannot be changed via . --- lib/lexers/sciteco.tes | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib') diff --git a/lib/lexers/sciteco.tes b/lib/lexers/sciteco.tes index 106c12b..ec023d7 100644 --- a/lib/lexers/sciteco.tes +++ b/lib/lexers/sciteco.tes @@ -8,6 +8,10 @@ } @[lexer.set.sciteco]{ + 2ESSETTABWIDTH + 0ESSETUSETABS + !* FIXME: Change TAB representation *! + 1ESSETIDENTIFIER :M[color.keyword],1M[color.set] :M[color.operator],2M[color.set] -- cgit v1.2.3