Bug 11837 - JavaScript detected as C source
Summary: JavaScript detected as C source
Status: RESOLVED FIXED
Alias: None
Product: shared-mime-info
Classification: Unclassified
Component: freedesktop.org.xml (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Jonathan Blandford
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 13681
  Show dependency treegraph
 
Reported: 2007-08-03 15:32 UTC by Sven Arvidsson
Modified: 2009-02-09 07:06 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
a patch to freedesktop.org.xml (869 bytes, patch)
2007-12-15 15:39 UTC, Robert DaSilva
Details | Splinter Review

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.