2
0
mirror of https://github.com/garabik/grc.git synced 2024-09-26 17:51:28 +02:00

ignore configuration sections without regexp

This commit is contained in:
Radovan Garabík 2016-01-27 10:10:58 +01:00
parent b1863ef01d
commit 71c6c70965
2 changed files with 5 additions and 4 deletions

4
grc
View File

@ -3,11 +3,11 @@
import os, re, string, sys, getopt, signal
def version():
print ("Generic Colouriser 1.9")
print ("Generic Colouriser 1.9.1rc1")
sys.exit()
def help():
print("""Generic Colouriser 1.9
print("""Generic Colouriser 1.9.1rc1
grc [options] command [args]
Options:")
-e --stderr redirect stderr. If this option is selected,

1
grcat
View File

@ -156,6 +156,7 @@ while not is_last:
ll['colours'] = colstrings
cs = ll['count']
if ll.has_key('regexp'):
ll['regexp'] = re.compile(ll['regexp']).search
regexplist.append(ll)