blob: fcbdc6245ed70c8f94f8efa89b1ea44dd5891668 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# haXe language definition file
#
# Author: Andre Simon
# Mail: andre.simon1@gmx.de
# Date: 24.7.2002
# updated 12.1.04 to add more types (ansi c, iso 99)
# ------------------------------------------
# This file is a part of highlight, a free source code converter released under the GPL.
#
# The file is used to describe keywords and special symbols of programming languages.
# See README in the highlight directory for details.
#
# New definition files for future releases of highlight are always appreciated ;)
#
# ----------
# andre.simon1@gmx.de
# http:/www.andre-simon.de/
$DESCRIPTION=haXe
#reserved words
$KEYWORDS(kwa)=function class static var if else while do for break return
continue extends implements import switch case default private public try catch
new this throw extern enum in interface untyped cast override typedef dynamic
package callback inline here
#types
$KEYWORDS(kwb)=Void Float Int Bool Dynamic true false null
# pattern to highlight regexes ( -/.../)
$KEYWORDS(kwc)=regex(~\/.*?\/[igms]*)
#~/{([a-z]+)}/g
$KEYWORDS(kwd)=regex((\w+)\s*\()
$STRINGDELIMITERS=" '
$SL_COMMENT=//
$ML_COMMENT=/* */
$ALLOWNESTEDCOMMENTS=false
$IGNORECASE=false
$ESCCHAR=regex(\\\d{3}|\\x\p{XDigit}{2}|\\[ntvbrfa\\\?'"])
$SYMBOLS= ( ) [ ] { } , ; . : & | < > ! = / * % + - ~
$DIGIT=regex((?:0x|0X)[0-9a-fA-F]+|\d*[\.\_]?\d+(?:[eE][\-\+]?\d+)?[lLuUbfdm]*)
|