<p>I'm happy with first match wins - but that doesn't seem to be the case. I've swapped the lines so that the Javascript line is first but it doesn't appear to have made any difference.</p>
<p>I've reloaded the config, restarted Geany, and even checked that there's no "*.aspx" entry in /usr/share/geany/filetype_extensions.conf. Are there any other locations that I need to check that might be overriding my local setting?</p>
<p>(I can't just drop *.aspx from XML because although I have lots of *.js.aspx files, I have even more *.aspx files that <em>are</em> XML).</p>
<p>For clarity, my filetype_extensions.conf file now looks like this:</p>
<pre><code>[Extensions]
Javascript=*.js;*.js.aspx;
XML=*.xml;*.sgml;*.xsl;*.xslt;*.xsd;*.xhtml;*.aspx;
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/issues/1921#issuecomment-411449582">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJx_cta3qsUDXCO7p5BQzCgNEci3Zks5uOwTzgaJpZM4V0DOm">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABDrJ10UuvtrX4A3gSEesZp4RBSGBBYcks5uOwTzgaJpZM4V0DOm.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/geany/geany","title":"geany/geany","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/geany/geany"}},"updates":{"snippets":[{"icon":"PERSON","message":"@Peppertop in #1921: I'm happy with first match wins - but that doesn't seem to be the case. I've swapped the lines so that the Javascript line is first but it doesn't appear to have made any difference.\r\n\r\nI've reloaded the config, restarted Geany, and even checked that there's no \"*.aspx\" entry in /usr/share/geany/filetype_extensions.conf. Are there any other locations that I need to check that might be overriding my local setting?\r\n\r\n(I can't just drop *.aspx from XML because although I have lots of *.js.aspx files, I have even more *.aspx files that *are* XML).\r\n\r\nFor clarity, my filetype_extensions.conf file now looks like this:\r\n```\r\n[Extensions]\r\nJavascript=*.js;*.js.aspx;\r\nXML=*.xml;*.sgml;*.xsl;*.xslt;*.xsd;*.xhtml;*.aspx;\r\n```"}],"action":{"name":"View Issue","url":"https://github.com/geany/geany/issues/1921#issuecomment-411449582"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/issues/1921#issuecomment-411449582",
"url": "https://github.com/geany/geany/issues/1921#issuecomment-411449582",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
},
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"hideOriginalBody": "false",
"originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB",
"title": "Re: [geany/geany] Filetypes are only recognised with simple extensions (#1921)",
"sections": [
{
"text": "",
"activityTitle": "**Mark**",
"activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png",
"activitySubtitle": "@Peppertop",
"facts": [

]
}
],
"potentialAction": [
{
"name": "Add a comment",
"@type": "ActionCard",
"inputs": [
{
"isMultiLine": true,
"@type": "TextInput",
"id": "IssueComment",
"isRequired": false
}
],
"actions": [
{
"name": "Comment",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueComment\",\n\"repositoryFullName\": \"geany/geany\",\n\"issueId\": 1921,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}"
}
]
},
{
"name": "Close issue",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueClose\",\n\"repositoryFullName\": \"geany/geany\",\n\"issueId\": 1921\n}"
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/geany/geany/issues/1921#issuecomment-411449582"
}
],
"@type": "OpenUri",
"name": "View on GitHub"
},
{
"name": "Unsubscribe",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 365966246\n}"
}
],
"themeColor": "26292E"
}
]</script>