Blame view

docs/js/editarea_0_8_2/edit_area/reg_syntax/java.js 1.66 KB
c2589de4   Luigi Serra   added demo page
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
51
52
53
54
55
56
57
  editAreaLoader.load_syntax["java"] = {

  	'DISPLAY_NAME' : 'Java'

  	,'COMMENT_SINGLE': { 1: '//', 2: '@' }

  	, 'COMMENT_MULTI': { '/*': '*/' }

  	, 'QUOTEMARKS': { 1: "'", 2: '"' }

  	, 'KEYWORD_CASE_SENSITIVE': true

  	, 'KEYWORDS': {

  	    'constants': [

  			'null', 'false', 'true'

  		]

  		, 'types': [

  			'String', 'int', 'short', 'long', 'char', 'double', 'byte',

  			'float', 'static', 'void', 'private', 'boolean', 'protected',

  			'public', 'const', 'class', 'final', 'abstract', 'volatile',

  			'enum', 'transient', 'interface'

  		]

  		, 'statements': [

              'this', 'extends', 'if', 'do', 'while', 'try', 'catch', 'finally',

              'throw', 'throws', 'else', 'for', 'switch', 'continue', 'implements',

              'break', 'case', 'default', 'goto'

  		]

   		, 'keywords': [

             'new', 'return', 'import', 'native', 'super', 'package', 'assert', 'synchronized',

             'instanceof', 'strictfp'

  		]

  	}

  	, 'OPERATORS': [

  		'+', '-', '/', '*', '=', '<', '>', '%', '!', '?', ':', '&'

  	]

  	, 'DELIMITERS': [

  		'(', ')', '[', ']', '{', '}'

  	]

  	, 'REGEXPS': {

  	    'precompiler': {

  	        'search': '()(#[^\r\n]*)()'

  			, 'class': 'precompiler'

  			, 'modifiers': 'g'

  			, 'execute': 'before'

  	    }

  	}

  	, 'STYLES': {

  	    'COMMENTS': 'color: #AAAAAA;'

  		, 'QUOTESMARKS': 'color: #6381F8;'

  		, 'KEYWORDS': {

  		    'constants': 'color: #EE0000;'

  			, 'types': 'color: #0000EE;'

  			, 'statements': 'color: #60CA00;'

  			, 'keywords': 'color: #48BDDF;'

  		}

  		, 'OPERATORS': 'color: #FF00FF;'

  		, 'DELIMITERS': 'color: #0038E1;'

  		, 'REGEXPS': {

  		    'precompiler': 'color: #009900;'

  			, 'precompilerstring': 'color: #994400;'

  		}

  	}

  };