aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2025-03-12 14:06:58 +0300
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2025-03-12 14:06:58 +0300
commitcefe7e65281a34c20da7288618d1df11d3b9db28 (patch)
tree3aa60a53e580d594406d092753040284a89f693f
parentedad78b3a1d2403fb499ebd0f99b1a962a447d1a (diff)
downloadsciteco-cefe7e65281a34c20da7288618d1df11d3b9db28.tar.gz
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 <ES>.
-rw-r--r--lib/lexers/sciteco.tes4
1 files changed, 4 insertions, 0 deletions
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]