diff options
author | Romain d'Alverny <rda@mageia.org> | 2012-09-12 13:17:32 +0000 |
---|---|---|
committer | Romain d'Alverny <rda@mageia.org> | 2012-09-12 13:17:32 +0000 |
commit | d1c452ce649321eff123c51ab1feb03b53f63d71 (patch) | |
tree | 5baeaf5fa64dd927cbb8fc4a084b5df046a80c8f /js | |
parent | 8469348c8936aa2edf9aa6ba093ec0dac289fa1d (diff) | |
download | pkgsubmit-d1c452ce649321eff123c51ab1feb03b53f63d71.tar pkgsubmit-d1c452ce649321eff123c51ab1feb03b53f63d71.tar.gz pkgsubmit-d1c452ce649321eff123c51ab1feb03b53f63d71.tar.bz2 pkgsubmit-d1c452ce649321eff123c51ab1feb03b53f63d71.tar.xz pkgsubmit-d1c452ce649321eff123c51ab1feb03b53f63d71.zip |
add keywords to highlight
Diffstat (limited to 'js')
-rw-r--r-- | js/pkgsubmit.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/js/pkgsubmit.js b/js/pkgsubmit.js index 76727b8..bbd71ba 100644 --- a/js/pkgsubmit.js +++ b/js/pkgsubmit.js @@ -65,7 +65,7 @@ function isShortFile(path) { * @return string */ function highlight_text(text) { - return text.replace(/.*(ok|succe|test|warn|info|deprecat|error|fail).*/gi, function (match, p1, p2, offset, string) { + return text.replace(/.*(ok|succe|test|warn|info|deprecat|error|fail|non\-standard|abort).*/gi, function (match, p1, p2, offset, string) { var cl = 'none'; switch (p1.toLowerCase()) { case 'succe': @@ -80,11 +80,13 @@ function highlight_text(text) { case 'warn': case 'deprecat': + case 'non-standard': cl = 'warn'; break; case 'error': case 'fail': + case 'abort': cl = 'error'; break; } |