/usr/share/javascript/edit-area/reg_syntax/robotstxt.js is in libjs-edit-area 0.8.2-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | editAreaLoader.load_syntax["robotstxt"] = {
'DISPLAY_NAME' : 'Robots txt',
'COMMENT_SINGLE' : {1 : '#'},
'COMMENT_MULTI' : {},
'QUOTEMARKS' : [],
'KEYWORD_CASE_SENSITIVE' : false,
'KEYWORDS' : {
'attributes' : ['User-agent', 'Disallow', 'Allow', 'Crawl-delay'],
'values' : ['*'],
'specials' : ['*']
},
'OPERATORS' :[':'],
'DELIMITERS' :[],
'STYLES' : {
'COMMENTS': 'color: #AAAAAA;',
'QUOTESMARKS': 'color: #6381F8;',
'KEYWORDS' : {
'attributes' : 'color: #48BDDF;',
'values' : 'color: #2B60FF;',
'specials' : 'color: #FF0000;'
},
'OPERATORS' : 'color: #FF00FF;',
'DELIMITERS' : 'color: #60CA00;'
}
};
|