aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTing-Wei Lan <lantw44@gmail.com>2014-07-24 00:07:01 +0800
committerTing-Wei Lan <lantw44@gmail.com>2014-07-24 00:07:25 +0800
commit4b0870d0dfe210c022f574c22eb545c428e05364 (patch)
treed719111020ed05467275c4ffd2839896f099010d
parent25e8551e737d95ff4c00969ee24cb19fd3dc2206 (diff)
downloadconfigfile-4b0870d0dfe210c022f574c22eb545c428e05364.tar.gz
configfile-4b0870d0dfe210c022f574c22eb545c428e05364.tar.zst
configfile-4b0870d0dfe210c022f574c22eb545c428e05364.zip
cgit: syntax-highlighting.sh: 加入 polkit 使用的 policy 和 rules
-rwxr-xr-xcgit/syntax-highlighting.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/cgit/syntax-highlighting.sh b/cgit/syntax-highlighting.sh
index 6d8aff6..b24cf15 100755
--- a/cgit/syntax-highlighting.sh
+++ b/cgit/syntax-highlighting.sh
@@ -22,6 +22,7 @@ case "${EXTENSION}" in
ui|glade*) EXTENSION=xml ;; # Glade
page) EXTENSION=xml ;; # Mallard
*proj|*props) EXTENSION=xml ;; # MS Visual Studio
+ policy) EXTENSION=xml ;; # polkit
doap) EXTENSION=xml ;; # project description
client) EXTENSION=xml ;; # Telepathy
rdf|omf) EXTENSION=xml ;;
@@ -38,6 +39,7 @@ case "${EXTENSION}" in
p) EXTENSION=c ;; # MapleBBS
xpm) EXTENSION=c ;;
s) EXTENSION=asm ;;
+ rules) EXTENSION=js ;; # polkit
json) EXTENSION=js ;;
ru) EXTENSION=rb ;; # config.ru
esac