summaryrefslogtreecommitdiff
path: root/scan-tree.h
diff options
context:
space:
mode:
authorGeorg Lukas <georg@op-co.de>2009-11-19 12:14:45 +0100
committerGeorg Lukas <georg@op-co.de>2009-11-19 12:14:45 +0100
commit56522ebe1387721d10196e835346257e7494abad (patch)
tree75e2d2c2148bf9aad54b361286957b033f13293e /scan-tree.h
parente633ccf714eb423c4522924c3b611dac2e176c5e (diff)
downloadcgit-56522ebe1387721d10196e835346257e7494abad.tar.gz
cgit-56522ebe1387721d10196e835346257e7494abad.tar.bz2
cgit-56522ebe1387721d10196e835346257e7494abad.zip
syntax highlighting for all formats supported by "highlight"
The highlight tool can be given any of the supported file extensions as its -S parameter. This patch replaces the case-switch by extracting the extension from the supplied file name and passing it to highlight. However, this requires a shell supporting the ${var##pattern} syntax, like dash or bash. Unknown extensions cause a fall-back to plain text using the --force switch. Error messages are redirected to /dev/null. A special case maps Makefile and Makefile.* to the "mk" extension. The total overhead is reduced by calling "exec highlight". No forks are needed during script execution. Signed-off-by: Georg Lukas <georg@op-co.de>
Diffstat (limited to 'scan-tree.h')
0 files changed, 0 insertions, 0 deletions
low=1'>Ported gpytage pluginRené 'Necoro' Neumann2-16/+14 2008-07-03Ported Notify pluginRené 'Necoro' Neumann4-37/+51 2008-07-03Remove xsd and -x cmdline optionRené 'Necoro' Neumann2-107/+1 2008-07-03Ported completelyRené 'Necoro' Neumann3-548/+54 2008-07-03Should show dependencies nowRené 'Necoro' Neumann2-82/+128 2008-07-03Use __slots__ for the PkgData class to save memoryRené 'Necoro' Neumann1-2/+3 2008-07-03New plugin system - first hackRené 'Necoro' Neumann2-420/+683 2008-06-30Now the new design is able to do the same as the old oneRené 'Necoro' Neumann3-168/+182 2008-06-30First draft of the new plugin windowRené 'Necoro' Neumann1-8/+172 2008-06-30Added stuff to plugin.pyRené 'Necoro' Neumann1-2/+24 2008-06-30Beautified some dialogsRené 'Necoro' Neumann1-6/+8 2008-06-30Only add a package to mergequeue if everything went fineRené 'Necoro' Neumann1-1/+1 2008-06-26Removed '__find_resolved_unresolved' as it is quite useless.René 'Necoro' Neumann3-53/+29 2008-06-26Added very basic set queryingRené 'Necoro' Neumann3-0/+27 2008-06-25Now load 22 versions when running the correct portageRené 'Necoro' Neumann4-8/+18 2008-06-25Added Package_22 and System_22René 'Necoro' Neumann4-5/+63