Skip to content

Commit f970808

Browse files
authored
Release v9.2.0 (#7422)
* Update all grammars * Update cached licenses * Assume frozen strings * v9.2.0
1 parent 6b83091 commit f970808

File tree

162 files changed

+176
-170
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

162 files changed

+176
-170
lines changed

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ end
5959
# The error count will need to be adjusted here until such time as all grammars are 100% error free.
6060
desc "Check that compiling the grammars doesn't introduce any new unexpected errors"
6161
task :check_grammars do
62-
expected_error_count = 55 # This count should only ever go down. If it goes up, there's a new issue that needs to be addressed before updating the grammar.
62+
expected_error_count = 53 # This count should only ever go down. If it goes up, there's a new issue that needs to be addressed before updating the grammar.
6363
rm_rf "linguist-grammars"
6464
output, status = Open3.capture2e("script/grammar-compiler", "compile", "-o", "linguist-grammars")
6565
errors_found = output[/The grammar library contains ([0-9]+) errors/, 1].to_i

grammars.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -956,6 +956,7 @@ vendor/grammars/python-django.tmbundle:
956956
- source.python.django
957957
- text.html.django
958958
vendor/grammars/qsharp:
959+
- source.openqasm
959960
- source.qsharp
960961
vendor/grammars/quake:
961962
- source.quake
@@ -1326,6 +1327,7 @@ vendor/grammars/vscode_cobol:
13261327
- source.dir
13271328
- source.directivesmf
13281329
- source.hlasm
1330+
- source.ilecobol
13291331
- source.jcl
13301332
- source.mfu
13311333
- source.mfupp_dir

lib/linguist/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
9.1.0
1+
9.2.0

test/test_language.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -355,18 +355,18 @@ def test_all_languages_have_grammars
355355
scopes = YAML.load(File.read(File.expand_path("../../grammars.yml", __FILE__))).values.flatten
356356
missing = Language.all.reject { |language| language.tm_scope == "none" || scopes.include?(language.tm_scope) }
357357
message = "The following languages' scopes are not listed in grammars.yml. Please add grammars for all new languages.\n"
358-
message << "If no grammar exists for a language, mark the language with `tm_scope: none` in lib/linguist/languages.yml.\n"
358+
message += "If no grammar exists for a language, mark the language with `tm_scope: none` in lib/linguist/languages.yml.\n"
359359

360360
width = missing.map { |language| language.name.length }.max
361-
message << missing.map { |language| sprintf("%-#{width}s %s", language.name, language.tm_scope) }.sort.join("\n")
361+
message += missing.map { |language| sprintf("%-#{width}s %s", language.name, language.tm_scope) }.sort.join("\n")
362362
assert missing.empty?, message
363363
end
364364

365365
def test_all_languages_have_scopes
366366
languages = YAML.load(File.read(File.expand_path("../../lib/linguist/languages.yml", __FILE__)))
367367
missing = languages.reject { |name,language| language.has_key?('tm_scope') }
368368
message = "The following languages do not have a `tm_scope` field defined. Use `tm_scope: none` if the language has no grammar.\n"
369-
message << missing.keys.sort.join("\n")
369+
message += missing.keys.sort.join("\n")
370370
assert missing.empty?, message
371371
end
372372

@@ -375,7 +375,7 @@ def test_all_languages_have_type
375375
message = "The following languages do not have a type listed in grammars.yml. Please add types for all new languages.\n"
376376

377377
width = missing.map { |language| language.name.length }.max
378-
message << missing.map { |language| sprintf("%-#{width}s", language.name) }.sort.join("\n")
378+
message += missing.map { |language| sprintf("%-#{width}s", language.name) }.sort.join("\n")
379379
assert missing.empty?, message
380380
end
381381

@@ -416,10 +416,10 @@ def test_all_languages_have_a_valid_ace_mode
416416

417417
missing = Language.all.reject { |language| language.ace_mode == "text" || existing_ace_modes.include?(language.ace_mode) }
418418
message = "The following languages do not have an Ace mode listed in languages.yml. Please add an Ace mode for all new languages.\n"
419-
message << "If no Ace mode exists for a language, mark the language with `ace_mode: text` in lib/linguist/languages.yml.\n"
419+
message += "If no Ace mode exists for a language, mark the language with `ace_mode: text` in lib/linguist/languages.yml.\n"
420420

421421
width = missing.map { |language| language.name.length }.max
422-
message << missing.map { |language| sprintf("%-#{width}s %s", language.name, language.ace_mode) }.sort.join("\n")
422+
message += missing.map { |language| sprintf("%-#{width}s %s", language.name, language.ace_mode) }.sort.join("\n")
423423
assert missing.empty?, message
424424
end
425425

@@ -462,7 +462,7 @@ def test_all_popular_languages_exist
462462

463463
missing = popular - Language.all.map(&:name)
464464
message = "The following languages are listed in lib/linguist/popular.yml but not in lib/linguist/languages.yml.\n"
465-
message << missing.sort.join("\n")
465+
message += missing.sort.join("\n")
466466
assert missing.empty?, message
467467
end
468468

vendor/CodeMirror

0 commit comments

Comments
 (0)