В Линуксе я использую простой текстовый редактор SciTE (Scintiila), но в нём нет подстветки синтаксиса для Оберона.
Попробовал применить такую настройку раскраски, но почему-то ничего не подсвечивает, хотя цвет шрифта можно поменять без проблем.
Код:
filter.oberon2=Oberon-2 (ob2 mod txt cp)|*.ob2;*.Mod;*.mod;*.txt;*.cp|
file.patterns.oberon2=*.ob2;*.mod;*.txt;*.cp
file.patterns.oberon2.all=$(file.patterns.oberon2)
lexer.$(file.patterns.oberon2.all)=oberon2
keywordclass.oberon2=ARRAY BEGIN BY CASE DIV DO ELSE ELSIF END EXIT FOR IF IMPORT IN IS LOOP MODULE NIL \
OF OR POINTER PROCEDURE RECORD REPEAT RETURN THEN TO TYPE VAR WHILE WITH
#keywordclass.oberon2.smart=add default implements index name nodefault read readonly \
#remove stored write writeonly
#~ keywordclass.oberon2.package=package contains requires
#~ keywords.$(file.patterns.oberon2)=$(keywordclass.oberon2) $(keywordclass.oberon2.smart)
#~ keywords.$(file.patterns.oberon2.package)=$(keywordclass.oberon2) $(keywordclass.oberon2.smart) $(keywordclass.oberon2.package)
keywords.$(file.patterns.oberon2)=$(keywordclass.oberon2)
# If enabled some keywords will only be highlightend in appropriate context.
# As implemented those are keywords related to property and DLL exports declarations
#lexer.oberon2.smart.highlighting=1
# oberon2 styles
# Default
style.oberon2.32=$(font.base)
# White space
#~ style.oberon2.0=fore:#808080
style.oberon2.0=fore:#000000
# Identifiers
style.oberon2.1=
# Comment: { ... }
#~ style.oberon2.2=$(colour.code.comment.box),$(font.code.comment.box)
# Comment: (* ... *)
#~ style.oberon2.3=$(colour.code.comment.box),$(font.code.comment.box)
# Line Comment: // ...
#~ style.oberon2.4=$(colour.code.comment.line),$(font.code.comment.line)
# Preprocessor: {$ ... }
#~ style.oberon2.5=$(colour.preproc)
# Preprocessor: (*$ ... *)
#~ style.oberon2.6=$(colour.preproc)
# Number
style.oberon2.7=$(colour.number)
# Hex Number
style.oberon2.8=$(colour.number)
# Keyword
style.oberon2.9=$(colour.keyword),bold
# String
style.oberon2.10=$(colour.string)
# End of line where string is not closed
style.oberon2.11=fore:#000000,$(font.monospace),back:#E0C0E0,eolfilled
# Character
style.oberon2.12=$(colour.char)
# Operators
style.oberon2.13=$(colour.operator),bold
# Inline Asm
#~ style.oberon2.14=fore:#804080
# Braces are only matched in operator style
braces.oberon2.style=13
#~ comment.block.oberon2=//~
#~ comment.stream.start.oberon2={
#~ comment.stream.end.oberon2=}
comment.box.start.oberon2=(*
comment.box.middle.oberon2= *
comment.box.end.oberon2= *)
statement.indent.$(file.patterns.oberon2)=9 DO ELSE FOR THEN REPEAT WHILE TYPE
statement.end.$(file.patterns.oberon2)=13 ;
statement.lookback.$(file.patterns.oberon2)=20
block.start.$(file.patterns.oberon2)=9 BEGIN
block.end.$(file.patterns.oberon2)=9 END
Где здесь ошибка?