Skip to content

Commit

Permalink
Updated OMNeT++ NED and MSG language name to be more human-friendly (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgeorge309 authored Jan 8, 2025
1 parent e5e652d commit 5293d68
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 20 deletions.
2 changes: 1 addition & 1 deletion lib/linguist/heuristics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ disambiguations:
- language: MAXScript
- extensions: ['.msg']
rules:
- language: omnetpp-msg
- language: OMNeT++ MSG
pattern: '^cplusplus\(?[\S]*\)?[\s]*\{?\{?|^namespace[\s]+([^.\s]*\.)*[^.\s]*;|^struct[\s]+[\S]+|^message[\s]+[\S]+(extends )?[\S]*[\s]*|^packet[\s]+[\S]+|^class[\s]+[\S]+(extends )?[\S]*[\s]*|^enum[\s]+[\S]+|^import ([^.\s]*\.)*[^.\s]*;'
- extensions: ['.n']
rules:
Expand Down
36 changes: 20 additions & 16 deletions lib/linguist/languages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4961,6 +4961,26 @@ OCaml:
- ocamlscript
tm_scope: source.ocaml
language_id: 255
OMNeT++ MSG:
type: programming
extensions:
- ".msg"
color: "#a0e0a0"
tm_scope: source.msg
ace_mode: text
aliases:
- omnetpp-msg
language_id: 664100008
OMNeT++ NED:
type: programming
extensions:
- ".ned"
color: "#08607c"
tm_scope: source.ned
ace_mode: text
aliases:
- omnetpp-ned
language_id: 924868392
Oberon:
type: programming
extensions:
Expand Down Expand Up @@ -8669,22 +8689,6 @@ nesC:
ace_mode: text
tm_scope: source.nesc
language_id: 417
omnetpp-msg:
type: programming
extensions:
- ".msg"
color: "#a0e0a0"
tm_scope: source.msg
ace_mode: text
language_id: 664100008
omnetpp-ned:
type: programming
extensions:
- ".ned"
color: "#08607c"
tm_scope: source.ned
ace_mode: text
language_id: 924868392
ooc:
type: programming
color: "#b0b77e"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion test/test_heuristics.rb
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ def test_ms_by_heuristics

def test_msg_by_heuristics
assert_heuristics({
"omnetpp-msg" => all_fixtures("omnetpp-msg", "*.msg"),
"OMNeT++ MSG" => all_fixtures("OMNeT++ MSG", "*.msg"),
})
end

Expand Down
4 changes: 2 additions & 2 deletions vendor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,8 @@ This is a list of grammars that Linguist selects to provide syntax highlighting
- **OASv3-json:** [Nixinova/NovaGrammars](https://github.com/Nixinova/NovaGrammars)

This comment was marked as spam.

Copy link
@sonya60

sonya60 Jan 8, 2025

[- > _****_](url)

- **OASv3-yaml:** [atom/language-yaml](https://github.com/atom/language-yaml)
- **OCaml:** [textmate/ocaml.tmbundle](https://github.com/textmate/ocaml.tmbundle)
- **OMNeT++ MSG:** [omnetpp/omnetpp-textmate-msg](https://github.com/omnetpp/omnetpp-textmate-msg)
- **OMNeT++ NED:** [omnetpp/omnetpp-textmate-ned](https://github.com/omnetpp/omnetpp-textmate-ned)
- **Oberon:** [harogaston/Sublime-Modula-2](https://github.com/harogaston/Sublime-Modula-2)
- **ObjDump:** [nanoant/assembly.tmbundle](https://github.com/nanoant/assembly.tmbundle)
- **Object Data Instance Notation:** [Alhadis/language-etc](https://github.com/Alhadis/language-etc)
Expand Down Expand Up @@ -684,8 +686,6 @@ This is a list of grammars that Linguist selects to provide syntax highlighting
- **mupad:** [ccreutzig/sublime-MuPAD](https://github.com/ccreutzig/sublime-MuPAD)
- **nanorc:** [Alhadis/language-etc](https://github.com/Alhadis/language-etc)
- **nesC:** [cdwilson/nesC.tmbundle](https://github.com/cdwilson/nesC.tmbundle)
- **omnetpp-msg:** [omnetpp/omnetpp-textmate-msg](https://github.com/omnetpp/omnetpp-textmate-msg)
- **omnetpp-ned:** [omnetpp/omnetpp-textmate-ned](https://github.com/omnetpp/omnetpp-textmate-ned)
- **ooc:** [nilium/ooc.tmbundle](https://github.com/nilium/ooc.tmbundle)
- **q:** [komsit37/sublime-q](https://github.com/komsit37/sublime-q)
- **reStructuredText:** [Lukasa/language-restructuredtext](https://github.com/Lukasa/language-restructuredtext)
Expand Down

0 comments on commit 5293d68

Please sign in to comment.