Bug 11837

Summary: JavaScript detected as C source
Product: shared-mime-info Reporter: Sven Arvidsson <sa>
Component: freedesktop.org.xmlAssignee: Jonathan Blandford <jrb>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Bug Depends on:    
Bug Blocks: 13681    
Attachments: a patch to freedesktop.org.xml

Description Sven Arvidsson 2007-08-03 15:32:49 UTC
[ Forwarded from http://bugs.debian.org/397945 ]

Similar to bug 9407, this JavaScript source starts with comments and is matched as  C source;
http://asurvey.net/ccsfagent/media/survey.js
Comment 1 Robert Kieffer 2007-08-16 13:25:29 UTC
Same problem here.  But with files starting with "/**"
Comment 2 Robert DaSilva 2007-12-15 15:39:33 UTC
Created attachment 13134 [details] [review]
a patch to freedesktop.org.xml
Comment 3 Sebastian Dröge (slomo) 2008-05-28 22:38:59 UTC
Can we get this committed for next release?
Comment 4 Bastien Nocera 2009-02-09 07:06:55 UTC
* freedesktop.org.xml.in: Patch from Robert DaSilva
<spunit262@Yahoo.com> to make Javascript a sub-class of C sources
so as to avoid misdetection
* tests/list:
* tests/survey.js: Add test-case from the bug above

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.