hitags update

This commit is contained in:
anon 2023-12-06 13:36:11 +01:00
parent 870e1c4d0b
commit 33c6ae03af

View File

@ -67,6 +67,10 @@ targets = [
'type': 's', 'type': 's',
'out': hi('Type') 'out': hi('Type')
}, },
{
'type': 'c',
'out': hi('Type')
},
{ {
'type': 'd', 'type': 'd',
'out': hi('Constant') 'out': hi('Constant')
@ -96,7 +100,7 @@ def mimetype(filename):
# cmd = "file -i {input_}".format(input_=filename) # cmd = "file -i {input_}".format(input_=filename)
cmd = "mimetype {input_}".format(input_=filename) cmd = "mimetype {input_}".format(input_=filename)
r = run(cmd, shell=True, stdout=PIPE) r = run(cmd, shell=True, stdout=PIPE)
r = r.stdout.decode('ascii').split(' ')[1].strip() r = r.stdout.decode('ascii', errors='replace').split(' ')[1].strip()
return r return r
def preprocessfile(filename): def preprocessfile(filename):