From 8c4873ce1f173d77328573db8b2b97560dcf2b59 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 3 Nov 2021 09:06:52 +0100 Subject: Adding upstream version 2.3.3. Signed-off-by: Daniel Baumann --- identify/cli.py | 2 +- identify/extensions.py | 2 ++ identify/interpreters.py | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) (limited to 'identify') diff --git a/identify/cli.py b/identify/cli.py index 28e6155..c61ebe4 100644 --- a/identify/cli.py +++ b/identify/cli.py @@ -31,4 +31,4 @@ def main(argv: Optional[Sequence[str]] = None) -> int: if __name__ == '__main__': - exit(main()) + raise SystemExit(main()) diff --git a/identify/extensions.py b/identify/extensions.py index 67d601a..17f86a7 100644 --- a/identify/extensions.py +++ b/identify/extensions.py @@ -137,6 +137,7 @@ EXTENSIONS = { 'png': {'binary', 'image', 'png'}, 'po': {'text', 'pofile'}, 'pp': {'text', 'puppet'}, + 'prisma': {'text', 'prisma'}, 'properties': {'text', 'java-properties'}, 'proto': {'text', 'proto'}, 'ps1': {'text', 'powershell'}, @@ -172,6 +173,7 @@ EXTENSIONS = { 'ss': {'text', 'scheme'}, 'styl': {'text', 'stylus'}, 'sv': {'text', 'system-verilog'}, + 'svelte': {'text', 'svelte'}, 'svg': {'text', 'image', 'svg', 'xml'}, 'svh': {'text', 'system-verilog'}, 'swf': {'binary', 'swf'}, diff --git a/identify/interpreters.py b/identify/interpreters.py index dabf36c..fde9e25 100644 --- a/identify/interpreters.py +++ b/identify/interpreters.py @@ -3,6 +3,7 @@ INTERPRETERS = { 'awk': {'awk'}, 'bash': {'shell', 'bash'}, 'bats': {'shell', 'bash', 'bats'}, + 'cbsd': {'shell', 'cbsd'}, 'csh': {'shell', 'csh'}, 'dash': {'shell', 'dash'}, 'expect': {'expect'}, -- cgit v1.2.3