summaryrefslogtreecommitdiff
path: root/context/data/scite/context/scite-context-external.properties
diff options
context:
space:
mode:
Diffstat (limited to 'context/data/scite/context/scite-context-external.properties')
-rw-r--r--context/data/scite/context/scite-context-external.properties98
1 files changed, 34 insertions, 64 deletions
diff --git a/context/data/scite/context/scite-context-external.properties b/context/data/scite/context/scite-context-external.properties
index e9d5f58ba..da3df8c99 100644
--- a/context/data/scite/context/scite-context-external.properties
+++ b/context/data/scite/context/scite-context-external.properties
@@ -1,41 +1,10 @@
# external lpeg lexers
-lexer.lpeg.home=$(SciteDefaultHome)/context/lexers
-
-lexer.lpeg.color.theme=scite-context-theme
-# lexer.lpeg.color.theme=$(SciteDefaultHome)/context/lexers/themes/scite-context-theme.lua
-
-# The lexer dll no longer interfaces to the following properties. It never had a full
-# interface, so maybe I'll make my own.
-
fold.by.parsing=1
fold.by.indentation=0
fold.by.line=0
fold.line.comments=0
-# you can put the dll/so file in the <scitehome>/context/lexers path or keep it in
-# <scitehome>/lexers
-
-if PLAT_WIN
- lexerpath.*.lpeg=$(lexer.lpeg.home)/../../lexers/lexlpeg.dll
-# lexerpath.*.lpeg=$(lexer.lpeg.home)/lexers/lexlpeg.dll
-
-if PLAT_GTK
- lexerpath.*.lpeg=$(lexer.lpeg.home)/../../lexers/liblexlpeg.so
-# lexerpath.*.lpeg=$(lexer.lpeg.home)/lexers/liblexlpeg.so
-
-# the variable lexer.name is automatically set but I'm not sure what the following
-# one is supposed to do so we keep it around (sams as in lpeg.properties, which we
-# don't load)
-
-lexer.*.lpeg=lpeg
-
-# in principle you can do the following, as we're mostly compatible with the
-# default lexers but for a regular context setup the lexers built-in scite are
-# just fine so in principle we only need the dll/so
-#
-# import lexers/lpeg
-
# patterns should be original (not clash with built in)
file.patterns.cweb=*.w;*.ww;
@@ -44,51 +13,52 @@ file.patterns.bib=*.bib
file.patterns.json=*.json
file.patterns.sql=*.sql
-lexer.$(file.patterns.metapost)=lpeg_scite-context-lexer-mps
-lexer.$(file.patterns.metafun)=lpeg_scite-context-lexer-mps
-lexer.$(file.patterns.context)=lpeg_scite-context-lexer-tex
-lexer.$(file.patterns.lua)=lpeg_scite-context-lexer-lua
-lexer.$(file.patterns.example)=lpeg_scite-context-lexer-xml
-lexer.$(file.patterns.text)=lpeg_scite-context-lexer-txt
-lexer.$(file.patterns.pdf)=lpeg_scite-context-lexer-pdf
-lexer.$(file.patterns.cweb)=lpeg_scite-context-lexer-web
-lexer.$(file.patterns.cpp)=lpeg_scite-context-lexer-cpp
-lexer.$(file.patterns.bib)=lpeg_scite-context-lexer-bibtex
-lexer.$(file.patterns.sql)=lpeg_scite-context-lexer-sql
-lexer.$(file.patterns.json)=lpeg_scite-context-lexer-json
-
-lexer.$(file.patterns.tex)=lpeg_scite-context-lexer-tex
-lexer.$(file.patterns.xml)=lpeg_scite-context-lexer-xml
-lexer.$(file.patterns.html)=lpeg_scite-context-lexer-xml
+lexer.$(file.patterns.metapost)=script_mps
+lexer.$(file.patterns.metafun)=script_mps
+lexer.$(file.patterns.context)=script_tex
+lexer.$(file.patterns.lua)=script_lua
+lexer.$(file.patterns.example)=script_xml
+lexer.$(file.patterns.text)=script_txt
+lexer.$(file.patterns.pdf)=script_pdf
+lexer.$(file.patterns.cweb)=script_web
+lexer.$(file.patterns.cpp)=script_cpp
+lexer.$(file.patterns.bib)=script_bibtex
+lexer.$(file.patterns.sql)=script_sql
+lexer.$(file.patterns.json)=script_json
+lexer.$(file.patterns.none)=script_none
+
+lexer.$(file.patterns.tex)=script_tex
+lexer.$(file.patterns.xml)=script_xml
+lexer.$(file.patterns.html)=script_xml
# It's a real pitty that we cannot overload the errorlist lexer. That would
# make scite even more interesting. Add to that including lpeg and the lpeg
# lexer and thereby providing an interface to properties.
-#~ lexer.errorlist=lpeg_scite-context-lexer-txt
-#~ lexer.output=lpeg_scite-context-lexer-txt
+#~ lexer.errorlist=script_txt
+#~ lexer.output=script_txt
-comment.block.lpeg_scite-context-lexer-tex=%
-comment.block.at.line.start.lpeg_scite-context-lexer-tex=1
+comment.block.script_tex=%
+comment.block.at.line.start.script_tex=1
-#~ comment.box.start.lpeg_scite-context-lexer-tex=%
-#~ comment.box.middle.lpeg_scite-context-lexer-tex=%
-#~ comment.box.end.lpeg_scite-context-lexer-tex=%
+#~ comment.box.start.script_tex=%
+#~ comment.box.middle.script_tex=%
+#~ comment.box.end.script_tex=%
-comment.block.lpeg_scite-context-lexer-mps=%
-comment.block.at.line.start.lpeg_scite-context-lexer-mps=1
+comment.block.script_mps=%
+comment.block.at.line.start.script_mps=1
-comment.block.lpeg_scite-context-lexer-lua=--
-comment.block.at.line.start.lpeg_scite-context-lexer-lua=1
+comment.block.script_lua=--
+comment.block.at.line.start.script_lua=1
-comment.block.lpeg_scite-context-lexer-cld=--
-comment.block.at.line.start.lpeg_scite-context-lexer-cld=1
+comment.block.script_cld=--
+comment.block.at.line.start.script_cld=1
-comment.block.lpeg_scite-context-lexer-bibtex=%
-comment.block.at.line.start.lpeg_scite-context-lexer-bibtex=1
+comment.block.script_bibtex=%
+comment.block.at.line.start.script_bibtex=1
-comment.block.lpeg_scite-context-lexer-json=%
-comment.block.at.line.start.lpeg_scite-context-lexer-json=1
+comment.block.script_json=%
+comment.block.at.line.start.script_json=1
comment.block.lpeg_props=#
comment.block.at.line.start.lpeg_props=1