#------------------------------------------------------------------------------
-# $File: c-lang,v 1.15 2011/12/08 12:12:46 rrt Exp $
+# $File: c-lang,v 1.16 2011/12/09 08:02:16 rrt Exp $
# c-lang: file(1) magic for C and related languages programs
#
# C++
# The strength of these rules is increased so they beat the C rules above
0 regex \^template C++ source text
-!:strength + 10
+!:strength + 5
!:mime text/x-c++
0 regex \^virtual C++ source text
-!:strength + 10
+!:strength + 5
!:mime text/x-c++
0 regex \^class C++ source text
-!:strength + 10
+!:strength + 5
!:mime text/x-c++
0 regex \^public: C++ source text
-!:strength + 10
+!:strength + 5
!:mime text/x-c++
0 regex \^private: C++ source text
-!:strength + 10
+!:strength + 5
!:mime text/x-c++
# From: Mikhail Teterin <mi@aldan.algebra.com>
#------------------------------------------------------------------------------
-# $File: sgml,v 1.26 2011/04/16 15:20:04 christos Exp $
+# $File: sgml,v 1.27 2011/12/07 12:01:24 rrt Exp $
# Type: SVG Vectorial Graphics
# From: Noel Torres <tecnico@ejerciciosresueltos.com>
0 string \<?xml\ version="
# adapted to string extenstions by Anthon van der Neut <anthon@mnt.org)
0 search/4096/cWt \<!doctype\ html HTML document text
!:mime text/html
+!:strength + 5
0 search/4096/cwt \<head HTML document text
!:mime text/html
+!:strength + 5
0 search/4096/cwt \<title HTML document text
!:mime text/html
+!:strength + 5
0 search/4096/cwt \<html HTML document text
!:mime text/html
+!:strength + 5
0 search/4096/cwt \<script HTML document text
!:mime text/html
+!:strength + 5
0 search/4096/cwt \<style HTML document text
!:mime text/html
+!:strength + 5
0 search/4096/cwt \<table HTML document text
!:mime text/html
+!:strength + 5
0 search/4096/cwt \<a\ href= HTML document text
!:mime text/html
+!:strength + 5
# Extensible markup language (XML), a subset of SGML
# from Marc Prud'hommeaux (marc@apocalypse.org)
0 search/1/cwt \<?xml XML document text
!:mime application/xml
+!:strength + 5
0 string/t \<?xml\ version\ " XML
!:mime application/xml
+!:strength + 5
0 string/t \<?xml\ version=" XML
!:mime application/xml
+!:strength + 5
>15 search/1 >\0 %.3s document text
>>23 search/1 \<xsl:stylesheet (XSL stylesheet)
>>24 search/1 \<xsl:stylesheet (XSL stylesheet)
0 string \<?xml\ version=' XML
!:mime application/xml
+!:strength + 5
>15 search/1 >\0 %.3s document text
>>23 search/1 \<xsl:stylesheet (XSL stylesheet)
>>24 search/1 \<xsl:stylesheet (XSL stylesheet)