websvn |
Subversion Repositories: |
Rev 1 | Rev 3 | |
---|---|---|
Line 2... | Line 2... | |
/************************************************************************************* |
/************************************************************************************* | |
* bash.php |
* bash.php | |
* -------- |
* -------- | |
* Author: Andreas Gohr (andi@splitbrain.org) |
* Author: Andreas Gohr (andi@splitbrain.org) | |
* Copyright: (c) 2004 Andreas Gohr, Nigel McNie (http://qbnz.com/highlighter) |
* Copyright: (c) 2004 Andreas Gohr, Nigel McNie (http://qbnz.com/highlighter) | |
* Release Version: 1.0.8.1 |
* Release Version: 1.0.8.3 | |
* Date Started: 2004/08/20 |
* Date Started: 2004/08/20 | |
* |
* | |
* BASH language file for GeSHi. |
* BASH language file for GeSHi. | |
* |
* | |
* CHANGES |
* CHANGES | |
Line 61... | Line 61... | |
'COMMENT_MULTI' => array(), |
'COMMENT_MULTI' => array(), | |
'COMMENT_REGEXP' => array( |
'COMMENT_REGEXP' => array( | |
//Variables |
//Variables | |
1 => "/\\$\\{[^\\n\\}]*?\\}/i", |
1 => "/\\$\\{[^\\n\\}]*?\\}/i", | |
//BASH-style Heredoc |
//BASH-style Heredoc | |
2 => '/<<-?\s*?([\'"]?)([a-zA-Z0-9]+)\1;[^\n]*?\\n.*\\n\\2(?![a-zA-Z0-9])/siU', |
2 => '/<<-?\s*?(\'?)([a-zA-Z0-9]+)\1\\n.*\\n\\2(?![a-zA-Z0-9])/siU', | |
//Escaped String Starters |
//Escaped String Starters | |
3 => "/\\\\['\"]/siU" |
3 => "/\\\\['\"]/siU" | |
), |
), | |
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, |
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, | |
'QUOTEMARKS' => array('"'), |
'QUOTEMARKS' => array('"'), | |
Line 272... | Line 272... | |
'COMMENTS' => array( |
'COMMENTS' => array( | |
'DISALLOWED_BEFORE' => '$' |
'DISALLOWED_BEFORE' => '$' | |
), |
), | |
'KEYWORDS' => array( |
'KEYWORDS' => array( | |
'DISALLOWED_BEFORE' => "(?<![\.\-a-zA-Z0-9_\$\#])", |
'DISALLOWED_BEFORE' => "(?<![\.\-a-zA-Z0-9_\$\#])", | |
'DISALLOWED_AFTER' => "(?![\.\-a-zA-Z0-9_%])" |
'DISALLOWED_AFTER' => "(?![\.\-a-zA-Z0-9_%\\/])" | |
) |
) | |
) |
) | |
); |
); | |
|
| |
?> |
?> | |
|