mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
Ticket #1408 (take 2): Erlang syntax updates (improved escape syntax)
Initial erlang syntax and enhancements are provided by Witold Baryluk Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
This commit is contained in:
parent
2ba2b246fe
commit
0cfde89dad
@ -196,7 +196,7 @@ include vhdl.syntax
|
|||||||
file ..\*\\.erl$ Erlang\sProgram ^(-module\\(|#!.*escript)
|
file ..\*\\.erl$ Erlang\sProgram ^(-module\\(|#!.*escript)
|
||||||
include erlang.syntax
|
include erlang.syntax
|
||||||
|
|
||||||
file ..\*\\.hrl$ Erlang\sHeader ^-record\(
|
file ..\*\\.hrl$ Erlang\sHeader ^-record\\(
|
||||||
include erlang.syntax
|
include erlang.syntax
|
||||||
|
|
||||||
file .\* unknown
|
file .\* unknown
|
||||||
|
@ -6,18 +6,27 @@
|
|||||||
# Homepage of Erlang: http://www.erlang.org
|
# Homepage of Erlang: http://www.erlang.org
|
||||||
#
|
#
|
||||||
# Author: Witold Baryluk < baryluk at smp if uj edu pl >
|
# Author: Witold Baryluk < baryluk at smp if uj edu pl >
|
||||||
# Date: 07-07-2009
|
# Date: 07-07-2009, 08-02-2009
|
||||||
#
|
#
|
||||||
# -------------------------------
|
# -------------------------------
|
||||||
#
|
#
|
||||||
# Usefull links:
|
# Usefull links:
|
||||||
# http://www.erlang.org/doc/doc-5.4.13/doc/reference_manual/part_frame.html
|
# http://www.erlang.org/doc/doc-5.4.13/doc/reference_manual/part_frame.html
|
||||||
|
# http://www.erlang.org/doc/reference_manual/data_types.html#2.14
|
||||||
# http://www.regular-expressions.info/reference.html
|
# http://www.regular-expressions.info/reference.html
|
||||||
# gedit: http://martin.ankerl.com/files/erlang.lang
|
# gedit: http://martin.ankerl.com/files/erlang.lang
|
||||||
# joe: http://www.straatinvestments.com/~tlack/erlang/joe-editor/erlang.jsf
|
# joe: http://www.straatinvestments.com/~tlack/erlang/joe-editor/erlang.jsf
|
||||||
# geshi: http://www.kreisquadratur.de/blog/?p=305
|
# geshi: http://www.kreisquadratur.de/blog/?p=305
|
||||||
# vim: http://erlang.org/pipermail/erlang-questions/2006-July/021362.html
|
# vim: http://erlang.org/pipermail/erlang-questions/2006-July/021362.html
|
||||||
# kate: http://bugsfiles.kde.org/attachment.cgi?id=21155
|
# kate: http://bugsfiles.kde.org/attachment.cgi?id=21155
|
||||||
|
#
|
||||||
|
# entries for Syntax file:
|
||||||
|
#
|
||||||
|
# file ..\*\\.erl$ Erlang\sProgram (-module\\(|#!.*escript)
|
||||||
|
# include erlang.syntax
|
||||||
|
#
|
||||||
|
# file ..\*\\.hrl$ Erlang\sHeader -record\\(
|
||||||
|
# include erlang.syntax
|
||||||
|
|
||||||
context default
|
context default
|
||||||
keyword whole after yellow
|
keyword whole after yellow
|
||||||
@ -237,6 +246,7 @@ context default
|
|||||||
keyword whole lists:filter gray
|
keyword whole lists:filter gray
|
||||||
keyword whole lists:reduce gray
|
keyword whole lists:reduce gray
|
||||||
keyword whole lists:foldl gray
|
keyword whole lists:foldl gray
|
||||||
|
keyword whole lists:foldr gray
|
||||||
keyword whole lists:append gray
|
keyword whole lists:append gray
|
||||||
keyword whole lists:nth gray
|
keyword whole lists:nth gray
|
||||||
keyword whole behaviour_info gray
|
keyword whole behaviour_info gray
|
||||||
@ -249,6 +259,10 @@ context default
|
|||||||
keyword whole dict:fetch_keys gray
|
keyword whole dict:fetch_keys gray
|
||||||
keyword whole dict:append gray
|
keyword whole dict:append gray
|
||||||
keyword whole dict:update gray
|
keyword whole dict:update gray
|
||||||
|
keyword whole dict:update_counter gray
|
||||||
|
keyword whole dict:fold gray
|
||||||
|
keyword whole dict:to_list gray
|
||||||
|
keyword whole dict:fetch gray
|
||||||
|
|
||||||
# todo: no more than one dot in atom, and not at the end
|
# todo: no more than one dot in atom, and not at the end
|
||||||
keyword whole \{abcdefghijklmnoprqstuvwxyz\}\[abcdefghijklmnoprqstuvwxyzABCDEFGHIJKLMNOPRQSTUVWXYZ0123456789_.@\] lightgray
|
keyword whole \{abcdefghijklmnoprqstuvwxyz\}\[abcdefghijklmnoprqstuvwxyzABCDEFGHIJKLMNOPRQSTUVWXYZ0123456789_.@\] lightgray
|
||||||
@ -263,6 +277,23 @@ context " " green
|
|||||||
keyword ~n brightgreen
|
keyword ~n brightgreen
|
||||||
keyword ~w brightgreen
|
keyword ~w brightgreen
|
||||||
keyword ~~ brightgreen
|
keyword ~~ brightgreen
|
||||||
|
keyword \\" brightgreen
|
||||||
|
keyword \\\{0123\}\{01234567\}\{01234567\} brightgreen
|
||||||
|
keyword \\\{01234567\}\{01234567\} brightgreen
|
||||||
|
keyword \\\{01234567\} brightgreen
|
||||||
|
keyword \\x\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\} brightgreen
|
||||||
|
keyword \\\\ brightgreen
|
||||||
|
keyword \\' brightgreen
|
||||||
|
keyword \\\{bdefrstv\} brightgreen
|
||||||
|
keyword \\^\{abcdefghijklmnoprqstuvwxyzABCDEFGHIJKLMNOPRQSTUVWXYZ\} brightgreen
|
||||||
|
|
||||||
context ' ' red
|
context ' ' red
|
||||||
spellcheck
|
keyword \\" brightred
|
||||||
|
keyword \\\{0123\}\{01234567\}\{01234567\} brightred
|
||||||
|
keyword \\\{01234567\}\{01234567\} brightred
|
||||||
|
keyword \\\{01234567\} brightred
|
||||||
|
keyword \\x\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\} brightred
|
||||||
|
keyword \\\\ brightred
|
||||||
|
keyword \\' brightred
|
||||||
|
keyword \\\{bdefrstv\} brightred
|
||||||
|
keyword \\^\{abcdefghijklmnoprqstuvwxyzABCDEFGHIJKLMNOPRQSTUVWXYZ\} brightred
|
||||||
|
Loading…
Reference in New Issue
Block a user