From 227d5ca9199b1f60a528090dca40ac5ce7205e13 Mon Sep 17 00:00:00 2001 From: Christos Zoulas Date: Wed, 31 Oct 2012 18:41:42 +0000 Subject: [PATCH] PR/199: accept whitespace before keywords, add a couple of more --- magic/Magdir/assembler | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/magic/Magdir/assembler b/magic/Magdir/assembler index 486a6870..92c6dde0 100644 --- a/magic/Magdir/assembler +++ b/magic/Magdir/assembler @@ -1,14 +1,18 @@ #------------------------------------------------------------------------------ -# $File$ +# $File: assembler,v 1.1 2011/12/08 12:12:46 rrt Exp $ # make: file(1) magic for assembler source # -0 regex \^\.asciiz\? assembler source text +0 regex \^[\020\t]*\.asciiz\? assembler source text !:mime text/x-asm -0 regex \^\.byte assembler source text +0 regex \^[\020\t]*\.byte assembler source text !:mime text/x-asm -0 regex \^\.even assembler source text +0 regex \^[\020\t]*\.even assembler source text !:mime text/x-asm -0 regex \^\.globl assembler source text +0 regex \^[\020\t]*\.globl assembler source text !:mime text/x-asm -0 regex \^\.text assembler source text +0 regex \^[\020\t]*\.text assembler source text +!:mime text/x-asm +0 regex \^[\020\t]*\.file assembler source text +!:mime text/x-asm +0 regex \^[\020\t]*\.type assembler source text !:mime text/x-asm -- 2.40.0