Programming language file extensions that match ISO 3166-1 alpha-2 country code

https://news.ycombinator.com/rss Hits: 8
Summary

So there's this standard called ISO 3166-1 alpha-2 that defines a 2 letter code for every country on the planet (like ME = Montenegro) and a bunch of places that aren't countries (like EU = European Union). You've probably encountered such a code before in top level domain names (.im belongs to the Isle of Man) and on Discord (typing :flag_fm: yields a 馃嚝馃嚥 emoji).One of these codes is RS (= Serbia). Either by a sheer coincidence or someone playing 5D chess, .rs is also the file extension for the Rust programming language, which is why the domain name of every other Rust project now belongs to Serbia. This made me curious about other cases like this, so here's an incomplete list of programming languages, domain-specific languages, markup languages, etc which file extensions match a country code. If you think something is missing, let me know!CodeFlagLanguageCountryAM馃嚘馃嚥AutomakeArmeniaAS馃嚘馃嚫ActionScriptAmerican SamoaCC馃嚚馃嚚C++Cocos IslandsEC馃嚜馃嚚eCEcuadorES馃嚜馃嚫ECMAScriptSpainGY馃嚞馃嚲GroovyGuyanaIN馃嚠馃嚦AutoconfIndiaMD馃嚥馃嚛MarkdownMoldovaMK馃嚥馃嚢MakefileNorth MacedoniaMM馃嚥馃嚥Objective CMyanmarPL馃嚨馃嚤Perl, PL/I, PrologPolandPS馃嚨馃嚫PostScriptPalestinePY馃嚨馃嚲PythonParaguayRS馃嚪馃嚫RustSerbiaRU馃嚪馃嚭RubyRussiaSB馃嚫馃嚙ScratchSolomon IslandsSC馃嚫馃嚚ScalaSeychellesSH馃嚫馃嚟Unix ShellSaint HelenaSL馃嚫馃嚤S-LangSierra LeoneSM馃嚫馃嚥SmallTalkSan MarinoST馃嚫馃嚬SmallTalk, Structured TextSao Tome and PrincipeSV馃嚫馃嚮SystemVerilogEl Salvador

First seen: 2026-07-24 13:23

Last seen: 2026-07-25 03:35