• Resolved Daniel

    (@dnlwgnr-1)


    Hi,

    I’ve written a module for support of Erlang. Is it possible to add this in one of the next updates?

    The folder is named “erlang” and there are 4 files in it:

    erlang.txt:

    ### ERLANG ###
    
    # ELEMENT_NAME [optional-css-class] REGULAR_EXPRESSION
    
    	NAME					Erlang
    	VERSION				0.1
    
    	COMMENT				(%.*?$)
    	PREPROCESSOR 		(#.*?$)
    	STRING				((?<!\\)".*?(?<!\\)")
    
    	STATEMENT			\b(?alt:statements.txt)\b
    	RESERVED				(?default)
    	TYPE					(?default)
    	MODIFIER				\b(?alt:modifier.txt)\b
    
    	ENTITY				(?default)
    
    	VARIABLE				(\b[A-Z]([A-Za-z0-9_]*?)\b)
    	IDENTIFIER			(?default)
    	CONSTANT				(\b[a-z]([A-Za-z0-9_]*?)\b)|((?<!\\)'.*?(?<!\\)')
    	OPERATOR				(?alt:operators.txt)
    	SYMBOL				(?default)

    modifier.txt:

    -module
    -import
    -export

    operators.txt:

    =
    ==
    =:=
    /=
    =/=
    >=
    >
    <
    =<
    
    ++
    --
    
    +
    -
    *
    /
    div
    rem
    
    bnot
    bor
    bandb
    bxor
    bsl
    bsr
    
    and
    or
    not
    xor
    
    andalso
    orelse
    
    !
    :
    #

    statements.txt:

    if
    case
    of
    when
    receive
    end
    try
    catch
    throw
    fun
    after

    __________
    Perhaps, you like to download it as a .zip-package from here: http://netroid.de/data/erlang.zip
    It would be great, if this will be added in the following versions.

    Regards, Daniel

    http://wordpress.org/extend/plugins/crayon-syntax-highlighter/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Erlang Module’ is closed to new replies.