WhitespaceClean-resources/edit_area
whitespace pass over files for reference regex that was used s/[ \t]+(\r?\n)/\1/
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
/**
|
||||
* Ruby syntax v 1.0
|
||||
*
|
||||
* Ruby syntax v 1.0
|
||||
*
|
||||
* v1.0 by Patrice De Saint Steban (2007/01/03)
|
||||
*
|
||||
*
|
||||
**/
|
||||
editAreaLoader.load_syntax["ruby"] = {
|
||||
'COMMENT_SINGLE' : {1 : '#'}
|
||||
@@ -12,7 +12,7 @@ editAreaLoader.load_syntax["ruby"] = {
|
||||
,'KEYWORDS' : {
|
||||
'reserved' : [
|
||||
'alias', 'and', 'BEGIN', 'begin', 'break', 'case', 'class', 'def', 'defined', 'do', 'else',
|
||||
'elsif', 'END', 'end', 'ensure', 'false', 'for', 'if',
|
||||
'elsif', 'END', 'end', 'ensure', 'false', 'for', 'if',
|
||||
'in', 'module', 'next', 'not', 'or', 'redo', 'rescue', 'retry',
|
||||
'return', 'self', 'super', 'then', 'true', 'undef', 'unless', 'until', 'when', 'while', 'yield'
|
||||
]
|
||||
@@ -28,19 +28,19 @@ editAreaLoader.load_syntax["ruby"] = {
|
||||
'search' : '()([A-Z]\\w*)()'
|
||||
,'class' : 'constants'
|
||||
,'modifiers' : 'g'
|
||||
,'execute' : 'before'
|
||||
,'execute' : 'before'
|
||||
}
|
||||
,'variables' : {
|
||||
'search' : '()([\$\@\%]+\\w+)()'
|
||||
,'class' : 'variables'
|
||||
,'modifiers' : 'g'
|
||||
,'execute' : 'before'
|
||||
,'execute' : 'before'
|
||||
}
|
||||
,'numbers' : {
|
||||
'search' : '()(-?[0-9]+)()'
|
||||
,'class' : 'numbers'
|
||||
,'modifiers' : 'g'
|
||||
,'execute' : 'before'
|
||||
,'execute' : 'before'
|
||||
}
|
||||
,'symbols' : {
|
||||
'search' : '()(:\\w+)()'
|
||||
@@ -62,6 +62,6 @@ editAreaLoader.load_syntax["ruby"] = {
|
||||
,'numbers' : 'color: green;'
|
||||
,'constants' : 'color: #00AA00;'
|
||||
,'symbols' : 'color: #879EFA;'
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user