From a97a342ffc879d76c627bf55f2ba74b5992f24dc Mon Sep 17 00:00:00 2001 From: Ashwin Maroli Date: Sun, 9 Sep 2018 12:36:46 +0530 Subject: [PATCH] freeze string literals in files --- Gemfile | 2 ++ Guardfile | 2 ++ Rakefile | 2 ++ bin/rougify | 1 + config.ru | 2 ++ lib/rouge/lexers/crystal.rb | 1 + lib/rouge/lexers/gherkin/keywords.rb | 2 ++ lib/rouge/lexers/hcl.rb | 1 + lib/rouge/lexers/jsp.rb | 1 + lib/rouge/lexers/lua/builtins.rb | 2 ++ lib/rouge/lexers/m68k.rb | 1 + lib/rouge/lexers/mathematica.rb | 1 + lib/rouge/lexers/mathematica/builtins.rb | 2 ++ lib/rouge/lexers/matlab/builtins.rb | 2 ++ lib/rouge/lexers/sqf.rb | 1 + lib/rouge/lexers/sqf/commands.rb | 2 ++ lib/rouge/lexers/terraform.rb | 1 + lib/rouge/lexers/viml/keywords.rb | 2 ++ rouge.gemspec | 2 ++ spec/cli_spec.rb | 1 + spec/formatter_spec.rb | 2 ++ spec/formatters/html_linewise_spec.rb | 1 + spec/formatters/html_pygments_spec.rb | 2 ++ spec/formatters/html_spec.rb | 1 + spec/formatters/null_spec.rb | 1 + spec/formatters/terminal256_spec.rb | 1 + spec/guesser_spec.rb | 2 ++ spec/lexer_spec.rb | 1 + spec/lexers/abap_spec.rb | 1 + spec/lexers/apache_spec.rb | 2 ++ spec/lexers/apiblueprint_spec.rb | 2 ++ spec/lexers/apple_script_spec.rb | 1 + spec/lexers/awk_spec.rb | 1 + spec/lexers/biml_spec.rb | 1 + spec/lexers/bsl_spec.rb | 1 + spec/lexers/c_spec.rb | 1 + spec/lexers/ceylon_spec.rb | 1 + spec/lexers/cfscript_spec.rb | 1 + spec/lexers/clojure_spec.rb | 1 + spec/lexers/cmake_spec.rb | 2 ++ spec/lexers/coffeescript_spec.rb | 1 + spec/lexers/common_lisp_spec.rb | 1 + spec/lexers/conf_spec.rb | 1 + spec/lexers/coq_spec.rb | 1 + spec/lexers/cpp_spec.rb | 1 + spec/lexers/crystal_spec.rb | 1 + spec/lexers/csharp_spec.rb | 1 + spec/lexers/css_spec.rb | 1 + spec/lexers/d_spec.rb | 1 + spec/lexers/dart_spec.rb | 1 + spec/lexers/diff_spec.rb | 1 + spec/lexers/digdag_spec.rb | 1 + spec/lexers/docker_spec.rb | 1 + spec/lexers/dot_spec.rb | 1 + spec/lexers/eiffel_spec.rb | 1 + spec/lexers/elixir_spec.rb | 1 + spec/lexers/elm_spec.rb | 1 + spec/lexers/erb_spec.rb | 1 + spec/lexers/erlang_spec.rb | 1 + spec/lexers/factor_spec.rb | 1 + spec/lexers/fortran_spec.rb | 1 + spec/lexers/fsharp_spec.rb | 1 + spec/lexers/gherkin_spec.rb | 1 + spec/lexers/go_spec.rb | 1 + spec/lexers/gradle_spec.rb | 1 + spec/lexers/graphql_spec.rb | 2 ++ spec/lexers/groovy_spec.rb | 1 + spec/lexers/hack_spec.rb | 1 + spec/lexers/haml_spec.rb | 1 + spec/lexers/handlebars_spec.rb | 1 + spec/lexers/haskell_spec.rb | 1 + spec/lexers/html_spec.rb | 1 + spec/lexers/hylang_spec.rb | 1 + spec/lexers/idlang_spec.rb | 1 + spec/lexers/igorpro_spec.rb | 1 + spec/lexers/ini_spec.rb | 1 + spec/lexers/io_spec.rb | 1 + spec/lexers/java_spec.rb | 1 + spec/lexers/javascript_spec.rb | 1 + spec/lexers/jinja_spec.rb | 1 + spec/lexers/jsonnet_spec.rb | 1 + spec/lexers/jsp_spec.rb | 1 + spec/lexers/jsx_spec.rb | 2 ++ spec/lexers/julia_spec.rb | 1 + spec/lexers/kotlin_spec.rb | 1 + spec/lexers/lasso_spec.rb | 1 + spec/lexers/liquid_spec.rb | 1 + spec/lexers/literate_coffeescript_spec.rb | 1 + spec/lexers/literate_haskell_spec.rb | 1 + spec/lexers/llvm_spec.rb | 1 + spec/lexers/lua_spec.rb | 1 + spec/lexers/make_spec.rb | 1 + spec/lexers/markdown_spec.rb | 1 + spec/lexers/mathematica_spec.rb | 1 + spec/lexers/matlab_spec.rb | 1 + spec/lexers/moonscript_spec.rb | 1 + spec/lexers/mosel_spec.rb | 1 + spec/lexers/nginx_spec.rb | 1 + spec/lexers/nim_spec.rb | 1 + spec/lexers/nix_spec.rb | 1 + spec/lexers/objective_c_spec.rb | 1 + spec/lexers/ocaml_spec.rb | 1 + spec/lexers/pascal_spec.rb | 1 + spec/lexers/perl_spec.rb | 1 + spec/lexers/php_spec.rb | 1 + spec/lexers/plain_text_spec.rb | 1 + spec/lexers/plist_spec.rb | 2 ++ spec/lexers/pony_spec.rb | 1 + spec/lexers/powershell_spec.rb | 1 + spec/lexers/praat_spec.rb | 1 + spec/lexers/prolog_spec.rb | 1 + spec/lexers/prometheus_spec.rb | 2 ++ spec/lexers/properties_spec.rb | 1 + spec/lexers/protobuf_spec.rb | 1 + spec/lexers/puppet_spec.rb | 1 + spec/lexers/python_spec.rb | 1 + spec/lexers/q_spec.rb | 2 ++ spec/lexers/qml_spec.rb | 1 + spec/lexers/r_spec.rb | 1 + spec/lexers/racket_spec.rb | 1 + spec/lexers/ruby_spec.rb | 1 + spec/lexers/rust_spec.rb | 1 + spec/lexers/scala_spec.rb | 1 + spec/lexers/scheme_spec.rb | 1 + spec/lexers/sed_spec.rb | 1 + spec/lexers/shell_spec.rb | 1 + spec/lexers/sieve_spec.rb | 1 + spec/lexers/slim_spec.rb | 1 + spec/lexers/smalltalk_spec.rb | 1 + spec/lexers/smarty_spec.rb | 1 + spec/lexers/sml_spec.rb | 1 + spec/lexers/sqf_spec.rb | 1 + spec/lexers/sql_spec.rb | 1 + spec/lexers/swift_spec.rb | 7 ++++--- spec/lexers/tap_spec.rb | 2 ++ spec/lexers/tcl_spec.rb | 1 + spec/lexers/terraform_spec.rb | 1 + spec/lexers/tex_spec.rb | 1 + spec/lexers/toml_spec.rb | 1 + spec/lexers/tsx_spec.rb | 1 + spec/lexers/tulip_spec.rb | 2 ++ spec/lexers/turtle_spec.rb | 1 + spec/lexers/twig_spec.rb | 1 + spec/lexers/typescript_spec.rb | 1 + spec/lexers/vala_spec.rb | 1 + spec/lexers/verilog_spec.rb | 1 + spec/lexers/viml_spec.rb | 1 + spec/lexers/vue_spec.rb | 2 ++ spec/lexers/wollok_spec.rb | 1 + spec/lexers/xml_spec.rb | 1 + spec/lexers/yaml_spec.rb | 1 + spec/lexers_spec.rb | 3 ++- spec/plugins/redcarpet_spec.rb | 1 + spec/spec_helper.rb | 1 + spec/support/guessing.rb | 1 + spec/support/lexing.rb | 1 + spec/theme_spec.rb | 1 + spec/token_spec.rb | 1 + spec/visual/app.rb | 1 + spec/visual_spec.rb | 1 + tasks/lex.rake | 2 ++ tasks/mathematica.rake | 2 ++ tasks/sqf.rake | 2 ++ 163 files changed, 195 insertions(+), 4 deletions(-) diff --git a/Gemfile b/Gemfile index bead2078da..700b0cea01 100644 --- a/Gemfile +++ b/Gemfile @@ -1,3 +1,5 @@ +# frozen_string_literal: true + source 'http://rubygems.org' gemspec diff --git a/Guardfile b/Guardfile index 757b163a1f..ba73e0015c 100644 --- a/Guardfile +++ b/Guardfile @@ -1,3 +1,5 @@ +# frozen_string_literal: true + guard :shell do watch(/\.rb$/) { `rake` } end diff --git a/Rakefile b/Rakefile index a1b2821487..a3411e457b 100644 --- a/Rakefile +++ b/Rakefile @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'rake/clean' require 'pathname' require "bundler/gem_tasks" diff --git a/bin/rougify b/bin/rougify index a7d7df2c21..1a7cc5be7d 100755 --- a/bin/rougify +++ b/bin/rougify @@ -1,4 +1,5 @@ #!/usr/bin/env ruby +# frozen_string_literal: true require 'pathname' ROOT_DIR = Pathname.new(__FILE__).dirname.parent diff --git a/config.ru b/config.ru index 7754f04c99..4d62e7c469 100644 --- a/config.ru +++ b/config.ru @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'pathname' here = Pathname.new(__FILE__).dirname diff --git a/lib/rouge/lexers/crystal.rb b/lib/rouge/lexers/crystal.rb index 4db3b6a0c3..5ef34c8a5d 100644 --- a/lib/rouge/lexers/crystal.rb +++ b/lib/rouge/lexers/crystal.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true module Rouge module Lexers diff --git a/lib/rouge/lexers/gherkin/keywords.rb b/lib/rouge/lexers/gherkin/keywords.rb index 89d10a956d..a4168f9f18 100644 --- a/lib/rouge/lexers/gherkin/keywords.rb +++ b/lib/rouge/lexers/gherkin/keywords.rb @@ -1,4 +1,6 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true + # automatically generated by `rake builtins:gherkin` module Rouge module Lexers diff --git a/lib/rouge/lexers/hcl.rb b/lib/rouge/lexers/hcl.rb index c4afb06fa0..37429b1ac0 100644 --- a/lib/rouge/lexers/hcl.rb +++ b/lib/rouge/lexers/hcl.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true module Rouge module Lexers diff --git a/lib/rouge/lexers/jsp.rb b/lib/rouge/lexers/jsp.rb index 99ea697f03..7c9f08a8e2 100644 --- a/lib/rouge/lexers/jsp.rb +++ b/lib/rouge/lexers/jsp.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true module Rouge module Lexers diff --git a/lib/rouge/lexers/lua/builtins.rb b/lib/rouge/lexers/lua/builtins.rb index cbc38d6e3a..2704ba11da 100644 --- a/lib/rouge/lexers/lua/builtins.rb +++ b/lib/rouge/lexers/lua/builtins.rb @@ -1,4 +1,6 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true + # automatically generated by `rake builtins:lua` module Rouge module Lexers diff --git a/lib/rouge/lexers/m68k.rb b/lib/rouge/lexers/m68k.rb index c612a4097f..67cfa7b455 100644 --- a/lib/rouge/lexers/m68k.rb +++ b/lib/rouge/lexers/m68k.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true module Rouge module Lexers diff --git a/lib/rouge/lexers/mathematica.rb b/lib/rouge/lexers/mathematica.rb index a430ee9a72..b4ca81791e 100644 --- a/lib/rouge/lexers/mathematica.rb +++ b/lib/rouge/lexers/mathematica.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true module Rouge module Lexers diff --git a/lib/rouge/lexers/mathematica/builtins.rb b/lib/rouge/lexers/mathematica/builtins.rb index a53eb5d2d6..376b0d961a 100644 --- a/lib/rouge/lexers/mathematica/builtins.rb +++ b/lib/rouge/lexers/mathematica/builtins.rb @@ -1,4 +1,6 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true + # automatically generated by `rake builtins:mathematica` module Rouge module Lexers diff --git a/lib/rouge/lexers/matlab/builtins.rb b/lib/rouge/lexers/matlab/builtins.rb index 64be1efff8..da47116738 100644 --- a/lib/rouge/lexers/matlab/builtins.rb +++ b/lib/rouge/lexers/matlab/builtins.rb @@ -1,4 +1,6 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true + # automatically generated by `rake builtins:matlab` module Rouge module Lexers diff --git a/lib/rouge/lexers/sqf.rb b/lib/rouge/lexers/sqf.rb index b171d1c5d6..af58ba6032 100644 --- a/lib/rouge/lexers/sqf.rb +++ b/lib/rouge/lexers/sqf.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true module Rouge module Lexers diff --git a/lib/rouge/lexers/sqf/commands.rb b/lib/rouge/lexers/sqf/commands.rb index c90773657f..23564faec2 100644 --- a/lib/rouge/lexers/sqf/commands.rb +++ b/lib/rouge/lexers/sqf/commands.rb @@ -1,4 +1,6 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true + # automatically generated by `rake builtins:sqf` module Rouge module Lexers diff --git a/lib/rouge/lexers/terraform.rb b/lib/rouge/lexers/terraform.rb index 5b7d291f90..a6aa437a97 100644 --- a/lib/rouge/lexers/terraform.rb +++ b/lib/rouge/lexers/terraform.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true module Rouge module Lexers diff --git a/lib/rouge/lexers/viml/keywords.rb b/lib/rouge/lexers/viml/keywords.rb index f978beec19..f5a862b090 100644 --- a/lib/rouge/lexers/viml/keywords.rb +++ b/lib/rouge/lexers/viml/keywords.rb @@ -1,4 +1,6 @@ # encoding: utf-8 +# frozen_string_literal: true + # DO NOT EDIT: automatically generated by `rake builtins:vim`. # see tasks/vim.rake for more info. module Rouge diff --git a/rouge.gemspec b/rouge.gemspec index 0df36f5d3a..64f5288b5f 100644 --- a/rouge.gemspec +++ b/rouge.gemspec @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require './lib/rouge/version' Gem::Specification.new do |s| diff --git a/spec/cli_spec.rb b/spec/cli_spec.rb index 6854926ce4..f6072404d4 100644 --- a/spec/cli_spec.rb +++ b/spec/cli_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true require 'rouge/cli' diff --git a/spec/formatter_spec.rb b/spec/formatter_spec.rb index c8519c77d2..92912bdd5a 100644 --- a/spec/formatter_spec.rb +++ b/spec/formatter_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + describe Rouge::Formatter do it 'finds terminal256' do assert { Rouge::Formatter.find('terminal256') } diff --git a/spec/formatters/html_linewise_spec.rb b/spec/formatters/html_linewise_spec.rb index e4a2ac7682..e83a9e050c 100644 --- a/spec/formatters/html_linewise_spec.rb +++ b/spec/formatters/html_linewise_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Formatters::HTMLLinewise do let(:subject) { Rouge::Formatters::HTMLLinewise.new(formatter, options) } diff --git a/spec/formatters/html_pygments_spec.rb b/spec/formatters/html_pygments_spec.rb index 5c8ab0a031..f7eca14b99 100644 --- a/spec/formatters/html_pygments_spec.rb +++ b/spec/formatters/html_pygments_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + describe Rouge::Formatters::HTMLPygments do let(:formatter) { Rouge::Formatters::HTML.new } let(:source) { 'echo "Hello World"' } diff --git a/spec/formatters/html_spec.rb b/spec/formatters/html_spec.rb index 0d581fbc56..462d0f909a 100644 --- a/spec/formatters/html_spec.rb +++ b/spec/formatters/html_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Formatters::HTML do let(:subject) { Rouge::Formatters::HTMLLegacy.new(options) } diff --git a/spec/formatters/null_spec.rb b/spec/formatters/null_spec.rb index 5def2250ec..444982841b 100644 --- a/spec/formatters/null_spec.rb +++ b/spec/formatters/null_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Formatters::Null do let(:subject) { Rouge::Formatters::Null.new } diff --git a/spec/formatters/terminal256_spec.rb b/spec/formatters/terminal256_spec.rb index 58da022258..e7b0bf623b 100644 --- a/spec/formatters/terminal256_spec.rb +++ b/spec/formatters/terminal256_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Formatters::Terminal256 do let(:subject) { Rouge::Formatters::Terminal256.new } diff --git a/spec/guesser_spec.rb b/spec/guesser_spec.rb index 5fed496d1a..f0e6daece3 100644 --- a/spec/guesser_spec.rb +++ b/spec/guesser_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + describe Rouge::Guesser do include Support::Guessing diff --git a/spec/lexer_spec.rb b/spec/lexer_spec.rb index f7220270b2..db52582128 100644 --- a/spec/lexer_spec.rb +++ b/spec/lexer_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexer do include Support::Lexing diff --git a/spec/lexers/abap_spec.rb b/spec/lexers/abap_spec.rb index 167a10aef8..3c3d382f89 100644 --- a/spec/lexers/abap_spec.rb +++ b/spec/lexers/abap_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::ABAP do let(:subject) { Rouge::Lexers::ABAP.new } diff --git a/spec/lexers/apache_spec.rb b/spec/lexers/apache_spec.rb index 9f5469a6be..1b763db2ff 100644 --- a/spec/lexers/apache_spec.rb +++ b/spec/lexers/apache_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + describe Rouge::Lexers::Apache do let(:subject) { Rouge::Lexers::Apache.new } diff --git a/spec/lexers/apiblueprint_spec.rb b/spec/lexers/apiblueprint_spec.rb index 1c926283da..8e728d42fb 100644 --- a/spec/lexers/apiblueprint_spec.rb +++ b/spec/lexers/apiblueprint_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + describe Rouge::Lexers::APIBlueprint do let(:subject) { Rouge::Lexers::APIBlueprint.new } diff --git a/spec/lexers/apple_script_spec.rb b/spec/lexers/apple_script_spec.rb index 9cb074710d..d430002dd5 100644 --- a/spec/lexers/apple_script_spec.rb +++ b/spec/lexers/apple_script_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::AppleScript do let(:subject) { Rouge::Lexers::AppleScript.new } diff --git a/spec/lexers/awk_spec.rb b/spec/lexers/awk_spec.rb index 22981ed856..8800160fc5 100644 --- a/spec/lexers/awk_spec.rb +++ b/spec/lexers/awk_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Awk do let(:subject) { Rouge::Lexers::Awk.new } diff --git a/spec/lexers/biml_spec.rb b/spec/lexers/biml_spec.rb index 1de661410d..870861e906 100644 --- a/spec/lexers/biml_spec.rb +++ b/spec/lexers/biml_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::BIML do let(:subject) { Rouge::Lexers::BIML.new } diff --git a/spec/lexers/bsl_spec.rb b/spec/lexers/bsl_spec.rb index 8dfa09e3c2..45e8c61521 100644 --- a/spec/lexers/bsl_spec.rb +++ b/spec/lexers/bsl_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Bsl do let(:subject) { Rouge::Lexers::Bsl.new } diff --git a/spec/lexers/c_spec.rb b/spec/lexers/c_spec.rb index badffc5043..c8acc301fd 100644 --- a/spec/lexers/c_spec.rb +++ b/spec/lexers/c_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::C do let(:subject) { Rouge::Lexers::C.new } diff --git a/spec/lexers/ceylon_spec.rb b/spec/lexers/ceylon_spec.rb index 5adb92801f..161cec6e20 100644 --- a/spec/lexers/ceylon_spec.rb +++ b/spec/lexers/ceylon_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Ceylon do let(:subject) { Rouge::Lexers::Ceylon.new } diff --git a/spec/lexers/cfscript_spec.rb b/spec/lexers/cfscript_spec.rb index f7051dee8a..f9dc7ef700 100644 --- a/spec/lexers/cfscript_spec.rb +++ b/spec/lexers/cfscript_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Cfscript do let(:subject) { Rouge::Lexers::Cfscript.new } diff --git a/spec/lexers/clojure_spec.rb b/spec/lexers/clojure_spec.rb index 3ce690c7e6..11b40d0b6d 100644 --- a/spec/lexers/clojure_spec.rb +++ b/spec/lexers/clojure_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Clojure do let(:subject) { Rouge::Lexers::Clojure.new } diff --git a/spec/lexers/cmake_spec.rb b/spec/lexers/cmake_spec.rb index 96a5b931a4..c41b670544 100644 --- a/spec/lexers/cmake_spec.rb +++ b/spec/lexers/cmake_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + describe Rouge::Lexers::CMake do let(:subject) { Rouge::Lexers::CMake.new } diff --git a/spec/lexers/coffeescript_spec.rb b/spec/lexers/coffeescript_spec.rb index a28997e626..11110b4a68 100644 --- a/spec/lexers/coffeescript_spec.rb +++ b/spec/lexers/coffeescript_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Coffeescript do let(:subject) { Rouge::Lexers::Coffeescript.new } diff --git a/spec/lexers/common_lisp_spec.rb b/spec/lexers/common_lisp_spec.rb index ee4a4780bb..4c06404363 100644 --- a/spec/lexers/common_lisp_spec.rb +++ b/spec/lexers/common_lisp_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::CommonLisp do let(:subject) { Rouge::Lexers::CommonLisp.new } diff --git a/spec/lexers/conf_spec.rb b/spec/lexers/conf_spec.rb index 0363da29ce..d2fd6d0da8 100644 --- a/spec/lexers/conf_spec.rb +++ b/spec/lexers/conf_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Conf do let(:subject) { Rouge::Lexers::Conf.new } diff --git a/spec/lexers/coq_spec.rb b/spec/lexers/coq_spec.rb index 8da02f1d62..08fcf0a0e7 100644 --- a/spec/lexers/coq_spec.rb +++ b/spec/lexers/coq_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Coq do let(:subject) { Rouge::Lexers::Coq.new } diff --git a/spec/lexers/cpp_spec.rb b/spec/lexers/cpp_spec.rb index 872fd335fb..97ec663a37 100644 --- a/spec/lexers/cpp_spec.rb +++ b/spec/lexers/cpp_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Cpp do let(:subject) { Rouge::Lexers::Cpp.new } diff --git a/spec/lexers/crystal_spec.rb b/spec/lexers/crystal_spec.rb index 6c1031b62f..a95fc0e2b4 100644 --- a/spec/lexers/crystal_spec.rb +++ b/spec/lexers/crystal_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Crystal do let(:subject) { Rouge::Lexers::Crystal.new } diff --git a/spec/lexers/csharp_spec.rb b/spec/lexers/csharp_spec.rb index d228704ecc..981c681b23 100644 --- a/spec/lexers/csharp_spec.rb +++ b/spec/lexers/csharp_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::CSharp do let(:subject) { Rouge::Lexers::CSharp.new } diff --git a/spec/lexers/css_spec.rb b/spec/lexers/css_spec.rb index 1fef32fda6..0751ecb8af 100644 --- a/spec/lexers/css_spec.rb +++ b/spec/lexers/css_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::CSS do let(:subject) { Rouge::Lexers::CSS.new } diff --git a/spec/lexers/d_spec.rb b/spec/lexers/d_spec.rb index 52116263b7..5e9de5dda4 100644 --- a/spec/lexers/d_spec.rb +++ b/spec/lexers/d_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::D do let(:subject) { Rouge::Lexers::D.new } diff --git a/spec/lexers/dart_spec.rb b/spec/lexers/dart_spec.rb index 27ff7ba317..080f0418a2 100644 --- a/spec/lexers/dart_spec.rb +++ b/spec/lexers/dart_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Dart do let(:subject) { Rouge::Lexers::Dart.new } diff --git a/spec/lexers/diff_spec.rb b/spec/lexers/diff_spec.rb index 836e510db0..973025fa9a 100644 --- a/spec/lexers/diff_spec.rb +++ b/spec/lexers/diff_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Diff do let(:subject) { Rouge::Lexers::Diff.new } diff --git a/spec/lexers/digdag_spec.rb b/spec/lexers/digdag_spec.rb index c26b1f310b..47b5c661e4 100644 --- a/spec/lexers/digdag_spec.rb +++ b/spec/lexers/digdag_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Digdag do let(:subject) { Rouge::Lexers::Digdag.new } diff --git a/spec/lexers/docker_spec.rb b/spec/lexers/docker_spec.rb index 6ad925c204..8efdbce42a 100644 --- a/spec/lexers/docker_spec.rb +++ b/spec/lexers/docker_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Docker do let(:subject) { Rouge::Lexers::Docker.new } diff --git a/spec/lexers/dot_spec.rb b/spec/lexers/dot_spec.rb index dd40b9ebaa..14a2d75dfb 100644 --- a/spec/lexers/dot_spec.rb +++ b/spec/lexers/dot_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Dot do let(:subject) { Rouge::Lexers::Dot.new } diff --git a/spec/lexers/eiffel_spec.rb b/spec/lexers/eiffel_spec.rb index 17c9ee17b0..73860432aa 100644 --- a/spec/lexers/eiffel_spec.rb +++ b/spec/lexers/eiffel_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Eiffel do let(:subject) { Rouge::Lexers::Eiffel.new } diff --git a/spec/lexers/elixir_spec.rb b/spec/lexers/elixir_spec.rb index a5f4b6b7eb..dbd97019e4 100644 --- a/spec/lexers/elixir_spec.rb +++ b/spec/lexers/elixir_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Elixir do let(:subject) { Rouge::Lexers::Elixir.new } diff --git a/spec/lexers/elm_spec.rb b/spec/lexers/elm_spec.rb index c2a0f83ea3..be3c45c405 100644 --- a/spec/lexers/elm_spec.rb +++ b/spec/lexers/elm_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Elm do let(:subject) { Rouge::Lexers::Elm.new } diff --git a/spec/lexers/erb_spec.rb b/spec/lexers/erb_spec.rb index c20dc9177f..829ec85f5c 100644 --- a/spec/lexers/erb_spec.rb +++ b/spec/lexers/erb_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::ERB do let(:subject) { Rouge::Lexers::ERB.new } diff --git a/spec/lexers/erlang_spec.rb b/spec/lexers/erlang_spec.rb index 713e32efa0..d2b6c53dfa 100644 --- a/spec/lexers/erlang_spec.rb +++ b/spec/lexers/erlang_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Erlang do let(:subject) { Rouge::Lexers::Erlang.new } diff --git a/spec/lexers/factor_spec.rb b/spec/lexers/factor_spec.rb index 81b5e47fbf..6ef13047bd 100644 --- a/spec/lexers/factor_spec.rb +++ b/spec/lexers/factor_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Factor do let(:subject) { Rouge::Lexers::Factor.new } diff --git a/spec/lexers/fortran_spec.rb b/spec/lexers/fortran_spec.rb index db3181b326..a7675d787a 100644 --- a/spec/lexers/fortran_spec.rb +++ b/spec/lexers/fortran_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Fortran do let(:subject) { Rouge::Lexers::Fortran.new } diff --git a/spec/lexers/fsharp_spec.rb b/spec/lexers/fsharp_spec.rb index b6bb94f559..ccab03d4ad 100644 --- a/spec/lexers/fsharp_spec.rb +++ b/spec/lexers/fsharp_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::FSharp do let(:subject) { Rouge::Lexers::FSharp.new } diff --git a/spec/lexers/gherkin_spec.rb b/spec/lexers/gherkin_spec.rb index 4aaf0658b6..aba5d0711e 100644 --- a/spec/lexers/gherkin_spec.rb +++ b/spec/lexers/gherkin_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Gherkin do let(:subject) { Rouge::Lexers::Gherkin.new } diff --git a/spec/lexers/go_spec.rb b/spec/lexers/go_spec.rb index 52f45b6ccd..46de641c50 100644 --- a/spec/lexers/go_spec.rb +++ b/spec/lexers/go_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Go do let(:subject) { Rouge::Lexers::Go.new } diff --git a/spec/lexers/gradle_spec.rb b/spec/lexers/gradle_spec.rb index 29c57a2152..1f3201cec3 100644 --- a/spec/lexers/gradle_spec.rb +++ b/spec/lexers/gradle_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Gradle do let(:subject) { Rouge::Lexers::Gradle.new } diff --git a/spec/lexers/graphql_spec.rb b/spec/lexers/graphql_spec.rb index 079f42a937..c8eba48257 100644 --- a/spec/lexers/graphql_spec.rb +++ b/spec/lexers/graphql_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + describe Rouge::Lexers::GraphQL do let(:subject) { Rouge::Lexers::GraphQL.new } diff --git a/spec/lexers/groovy_spec.rb b/spec/lexers/groovy_spec.rb index 6f9d155af2..21f39866a0 100644 --- a/spec/lexers/groovy_spec.rb +++ b/spec/lexers/groovy_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Groovy do let(:subject) { Rouge::Lexers::Groovy.new } diff --git a/spec/lexers/hack_spec.rb b/spec/lexers/hack_spec.rb index 869e6400cc..9f713a80b2 100644 --- a/spec/lexers/hack_spec.rb +++ b/spec/lexers/hack_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Hack do let(:subject) { Rouge::Lexers::Hack.new } diff --git a/spec/lexers/haml_spec.rb b/spec/lexers/haml_spec.rb index 1e8ee5367c..a162100958 100644 --- a/spec/lexers/haml_spec.rb +++ b/spec/lexers/haml_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Haml do let(:subject) { Rouge::Lexers::Haml.new } diff --git a/spec/lexers/handlebars_spec.rb b/spec/lexers/handlebars_spec.rb index 9b3d09d083..f6fca3ed6a 100644 --- a/spec/lexers/handlebars_spec.rb +++ b/spec/lexers/handlebars_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Handlebars do let(:subject) { Rouge::Lexers::Handlebars.new } diff --git a/spec/lexers/haskell_spec.rb b/spec/lexers/haskell_spec.rb index 9514b06051..0456618620 100644 --- a/spec/lexers/haskell_spec.rb +++ b/spec/lexers/haskell_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Haskell do let(:subject) { Rouge::Lexers::Haskell.new } diff --git a/spec/lexers/html_spec.rb b/spec/lexers/html_spec.rb index 12f8c518ec..90fbddc4dd 100644 --- a/spec/lexers/html_spec.rb +++ b/spec/lexers/html_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::HTML do let(:subject) { Rouge::Lexers::HTML.new } diff --git a/spec/lexers/hylang_spec.rb b/spec/lexers/hylang_spec.rb index 640f9a769d..2beb27849a 100644 --- a/spec/lexers/hylang_spec.rb +++ b/spec/lexers/hylang_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::HyLang do let(:subject) { Rouge::Lexers::HyLang.new } diff --git a/spec/lexers/idlang_spec.rb b/spec/lexers/idlang_spec.rb index 6dd91a7b54..4f063da8e5 100644 --- a/spec/lexers/idlang_spec.rb +++ b/spec/lexers/idlang_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::IDLang do let(:subject) { Rouge::Lexers::IDLang.new } diff --git a/spec/lexers/igorpro_spec.rb b/spec/lexers/igorpro_spec.rb index cac8e604e6..df02872a2e 100644 --- a/spec/lexers/igorpro_spec.rb +++ b/spec/lexers/igorpro_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::IgorPro do let(:subject) { Rouge::Lexers::IgorPro.new } diff --git a/spec/lexers/ini_spec.rb b/spec/lexers/ini_spec.rb index d3415d8094..3cefe49532 100644 --- a/spec/lexers/ini_spec.rb +++ b/spec/lexers/ini_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::INI do let(:subject) { Rouge::Lexers::INI.new } diff --git a/spec/lexers/io_spec.rb b/spec/lexers/io_spec.rb index 01be4398f0..7175dba6fd 100644 --- a/spec/lexers/io_spec.rb +++ b/spec/lexers/io_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::IO do let(:subject) { Rouge::Lexers::IO.new } diff --git a/spec/lexers/java_spec.rb b/spec/lexers/java_spec.rb index 64af5d48a9..dbacdcb666 100644 --- a/spec/lexers/java_spec.rb +++ b/spec/lexers/java_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Java do let(:subject) { Rouge::Lexers::Java.new } diff --git a/spec/lexers/javascript_spec.rb b/spec/lexers/javascript_spec.rb index 573edfcfce..ce39e9f52f 100644 --- a/spec/lexers/javascript_spec.rb +++ b/spec/lexers/javascript_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Javascript do let(:subject) { Rouge::Lexers::Javascript.new } diff --git a/spec/lexers/jinja_spec.rb b/spec/lexers/jinja_spec.rb index 75a3a7dc70..64c6089ca4 100644 --- a/spec/lexers/jinja_spec.rb +++ b/spec/lexers/jinja_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Jinja do let(:subject) { Rouge::Lexers::Jinja.new } diff --git a/spec/lexers/jsonnet_spec.rb b/spec/lexers/jsonnet_spec.rb index 092f9c2c44..c0409ed6ea 100644 --- a/spec/lexers/jsonnet_spec.rb +++ b/spec/lexers/jsonnet_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Jsonnet do let(:subject) { Rouge::Lexers::Jsonnet.new } diff --git a/spec/lexers/jsp_spec.rb b/spec/lexers/jsp_spec.rb index 3894b5f975..a0ba98f04a 100644 --- a/spec/lexers/jsp_spec.rb +++ b/spec/lexers/jsp_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::JSP do let(:subject) { Rouge::Lexers::JSP.new } diff --git a/spec/lexers/jsx_spec.rb b/spec/lexers/jsx_spec.rb index ab0e56b237..fd6d583019 100644 --- a/spec/lexers/jsx_spec.rb +++ b/spec/lexers/jsx_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + describe Rouge::Lexers::JSX do let(:subject) { Rouge::Lexers::JSX.new } diff --git a/spec/lexers/julia_spec.rb b/spec/lexers/julia_spec.rb index 2622a0eee3..27a0288734 100644 --- a/spec/lexers/julia_spec.rb +++ b/spec/lexers/julia_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Julia do let(:subject) { Rouge::Lexers::Julia.new } diff --git a/spec/lexers/kotlin_spec.rb b/spec/lexers/kotlin_spec.rb index 5cef1c9a36..277316f514 100644 --- a/spec/lexers/kotlin_spec.rb +++ b/spec/lexers/kotlin_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Kotlin do let(:subject) { Rouge::Lexers::Kotlin.new } diff --git a/spec/lexers/lasso_spec.rb b/spec/lexers/lasso_spec.rb index f352901fa1..d1de6d9728 100644 --- a/spec/lexers/lasso_spec.rb +++ b/spec/lexers/lasso_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Lasso do let(:subject) { Rouge::Lexers::Lasso.new } diff --git a/spec/lexers/liquid_spec.rb b/spec/lexers/liquid_spec.rb index 56c7a0d722..ef431642db 100644 --- a/spec/lexers/liquid_spec.rb +++ b/spec/lexers/liquid_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Liquid do let(:subject) { Rouge::Lexers::Liquid.new } diff --git a/spec/lexers/literate_coffeescript_spec.rb b/spec/lexers/literate_coffeescript_spec.rb index d6ca3868a8..87616beb25 100644 --- a/spec/lexers/literate_coffeescript_spec.rb +++ b/spec/lexers/literate_coffeescript_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::LiterateCoffeescript do let(:subject) { Rouge::Lexers::LiterateCoffeescript.new } diff --git a/spec/lexers/literate_haskell_spec.rb b/spec/lexers/literate_haskell_spec.rb index a91a35f532..5aa20e03df 100644 --- a/spec/lexers/literate_haskell_spec.rb +++ b/spec/lexers/literate_haskell_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::LiterateHaskell do let(:subject) { Rouge::Lexers::LiterateHaskell.new } diff --git a/spec/lexers/llvm_spec.rb b/spec/lexers/llvm_spec.rb index d359d49904..c2b3c2916a 100644 --- a/spec/lexers/llvm_spec.rb +++ b/spec/lexers/llvm_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::LLVM do let(:subject) { Rouge::Lexers::LLVM.new } diff --git a/spec/lexers/lua_spec.rb b/spec/lexers/lua_spec.rb index ac84f37821..15c94e3b1b 100644 --- a/spec/lexers/lua_spec.rb +++ b/spec/lexers/lua_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Lua do let(:subject) { Rouge::Lexers::Lua.new } diff --git a/spec/lexers/make_spec.rb b/spec/lexers/make_spec.rb index 475b6c2378..c9d26adbe7 100644 --- a/spec/lexers/make_spec.rb +++ b/spec/lexers/make_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Make do let(:subject) { Rouge::Lexers::Make.new } diff --git a/spec/lexers/markdown_spec.rb b/spec/lexers/markdown_spec.rb index dc7c41a482..5677e9997a 100644 --- a/spec/lexers/markdown_spec.rb +++ b/spec/lexers/markdown_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Markdown do let(:subject) { Rouge::Lexers::Markdown.new } diff --git a/spec/lexers/mathematica_spec.rb b/spec/lexers/mathematica_spec.rb index 5e1a138644..32288ec138 100644 --- a/spec/lexers/mathematica_spec.rb +++ b/spec/lexers/mathematica_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Mathematica do let(:subject) { Rouge::Lexers::Mathematica.new } diff --git a/spec/lexers/matlab_spec.rb b/spec/lexers/matlab_spec.rb index c116213a6a..8cb573c0ee 100644 --- a/spec/lexers/matlab_spec.rb +++ b/spec/lexers/matlab_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Matlab do let(:subject) { Rouge::Lexers::Matlab.new } diff --git a/spec/lexers/moonscript_spec.rb b/spec/lexers/moonscript_spec.rb index 131ba80fd1..59c91326fa 100644 --- a/spec/lexers/moonscript_spec.rb +++ b/spec/lexers/moonscript_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Moonscript do let(:subject) { Rouge::Lexers::Moonscript.new } diff --git a/spec/lexers/mosel_spec.rb b/spec/lexers/mosel_spec.rb index 04d0b5c7be..fed61e9a48 100644 --- a/spec/lexers/mosel_spec.rb +++ b/spec/lexers/mosel_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Mosel do let(:subject) { Rouge::Lexers::Mosel.new } diff --git a/spec/lexers/nginx_spec.rb b/spec/lexers/nginx_spec.rb index 937e02e32b..755a27a67a 100644 --- a/spec/lexers/nginx_spec.rb +++ b/spec/lexers/nginx_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Nginx do let(:subject) { Rouge::Lexers::Nginx.new } diff --git a/spec/lexers/nim_spec.rb b/spec/lexers/nim_spec.rb index b478d9669c..10ed09779e 100644 --- a/spec/lexers/nim_spec.rb +++ b/spec/lexers/nim_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Nim do let(:subject) { Rouge::Lexers::Nim.new } diff --git a/spec/lexers/nix_spec.rb b/spec/lexers/nix_spec.rb index ce5c661e5b..6cbcf52cca 100644 --- a/spec/lexers/nix_spec.rb +++ b/spec/lexers/nix_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Nix do let(:subject) { Rouge::Lexers::Nix.new } diff --git a/spec/lexers/objective_c_spec.rb b/spec/lexers/objective_c_spec.rb index 6690c1ea59..5e56f0b207 100644 --- a/spec/lexers/objective_c_spec.rb +++ b/spec/lexers/objective_c_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::ObjectiveC do let(:subject) { Rouge::Lexers::ObjectiveC.new } diff --git a/spec/lexers/ocaml_spec.rb b/spec/lexers/ocaml_spec.rb index 212ca4f6c4..339b5f0416 100644 --- a/spec/lexers/ocaml_spec.rb +++ b/spec/lexers/ocaml_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::OCaml do let(:subject) { Rouge::Lexers::OCaml.new } diff --git a/spec/lexers/pascal_spec.rb b/spec/lexers/pascal_spec.rb index 6b4b1db02c..408d4d4c9e 100644 --- a/spec/lexers/pascal_spec.rb +++ b/spec/lexers/pascal_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Pascal do let(:subject) { Rouge::Lexers::Pascal.new } diff --git a/spec/lexers/perl_spec.rb b/spec/lexers/perl_spec.rb index 31ee119817..395fe49903 100644 --- a/spec/lexers/perl_spec.rb +++ b/spec/lexers/perl_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Perl do let(:subject) { Rouge::Lexers::Perl.new } diff --git a/spec/lexers/php_spec.rb b/spec/lexers/php_spec.rb index 6c874e69d5..dc7499d6b8 100644 --- a/spec/lexers/php_spec.rb +++ b/spec/lexers/php_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::PHP do let(:subject) { Rouge::Lexers::PHP.new } diff --git a/spec/lexers/plain_text_spec.rb b/spec/lexers/plain_text_spec.rb index c26dc48046..35a40da31b 100644 --- a/spec/lexers/plain_text_spec.rb +++ b/spec/lexers/plain_text_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::PlainText do let(:subject) { Rouge::Lexers::PlainText.new } diff --git a/spec/lexers/plist_spec.rb b/spec/lexers/plist_spec.rb index ccc2c7aee5..fb19151b86 100644 --- a/spec/lexers/plist_spec.rb +++ b/spec/lexers/plist_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + describe Rouge::Lexers::Plist do let(:subject) { Rouge::Lexers::Plist.new } diff --git a/spec/lexers/pony_spec.rb b/spec/lexers/pony_spec.rb index b29a2ef425..a736f1c482 100644 --- a/spec/lexers/pony_spec.rb +++ b/spec/lexers/pony_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Pony do let(:subject) { Rouge::Lexers::Pony.new } diff --git a/spec/lexers/powershell_spec.rb b/spec/lexers/powershell_spec.rb index 326ce5cc46..3d96f1be12 100644 --- a/spec/lexers/powershell_spec.rb +++ b/spec/lexers/powershell_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Powershell do let(:subject) { Rouge::Lexers::Powershell.new } diff --git a/spec/lexers/praat_spec.rb b/spec/lexers/praat_spec.rb index 6624e0fb49..1e8f6c5520 100644 --- a/spec/lexers/praat_spec.rb +++ b/spec/lexers/praat_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Praat do let(:subject) { Rouge::Lexers::Praat.new } diff --git a/spec/lexers/prolog_spec.rb b/spec/lexers/prolog_spec.rb index ebb0501559..e3be9b7d53 100644 --- a/spec/lexers/prolog_spec.rb +++ b/spec/lexers/prolog_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Prolog do let(:subject) { Rouge::Lexers::Prolog.new } diff --git a/spec/lexers/prometheus_spec.rb b/spec/lexers/prometheus_spec.rb index cb11a611a0..1d9aec08c4 100644 --- a/spec/lexers/prometheus_spec.rb +++ b/spec/lexers/prometheus_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + describe Rouge::Lexers::Prometheus do let(:subject) { Rouge::Lexers::Prometheus.new } diff --git a/spec/lexers/properties_spec.rb b/spec/lexers/properties_spec.rb index ebb64a084c..970d354e2d 100644 --- a/spec/lexers/properties_spec.rb +++ b/spec/lexers/properties_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Properties do let(:subject) { Rouge::Lexers::Properties.new } diff --git a/spec/lexers/protobuf_spec.rb b/spec/lexers/protobuf_spec.rb index ad536fffcb..0a0722ef09 100644 --- a/spec/lexers/protobuf_spec.rb +++ b/spec/lexers/protobuf_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Protobuf do let(:subject) { Rouge::Lexers::Protobuf.new } diff --git a/spec/lexers/puppet_spec.rb b/spec/lexers/puppet_spec.rb index a36474aa0c..884a48605a 100644 --- a/spec/lexers/puppet_spec.rb +++ b/spec/lexers/puppet_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Puppet do let(:subject) { Rouge::Lexers::Puppet.new } diff --git a/spec/lexers/python_spec.rb b/spec/lexers/python_spec.rb index b3c22966ce..9dd0b65361 100644 --- a/spec/lexers/python_spec.rb +++ b/spec/lexers/python_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Python do let(:subject) { Rouge::Lexers::Python.new } diff --git a/spec/lexers/q_spec.rb b/spec/lexers/q_spec.rb index 988395905a..b59d5500c9 100644 --- a/spec/lexers/q_spec.rb +++ b/spec/lexers/q_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + describe Rouge::Lexers::Q do let(:subject) { Rouge::Lexers::Q.new } diff --git a/spec/lexers/qml_spec.rb b/spec/lexers/qml_spec.rb index 1e7ed0cfd2..e1e5c19b76 100644 --- a/spec/lexers/qml_spec.rb +++ b/spec/lexers/qml_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Qml do let(:subject) { Rouge::Lexers::Qml.new } diff --git a/spec/lexers/r_spec.rb b/spec/lexers/r_spec.rb index b2f716ff61..092eb94002 100644 --- a/spec/lexers/r_spec.rb +++ b/spec/lexers/r_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::R do let(:subject) { Rouge::Lexers::R.new } diff --git a/spec/lexers/racket_spec.rb b/spec/lexers/racket_spec.rb index a900417c7d..7bbb9c9c5c 100644 --- a/spec/lexers/racket_spec.rb +++ b/spec/lexers/racket_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Racket do let(:subject) { Rouge::Lexers::Racket.new } diff --git a/spec/lexers/ruby_spec.rb b/spec/lexers/ruby_spec.rb index 806d38e497..8a051863a1 100644 --- a/spec/lexers/ruby_spec.rb +++ b/spec/lexers/ruby_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Ruby do let(:subject) { Rouge::Lexers::Ruby.new } diff --git a/spec/lexers/rust_spec.rb b/spec/lexers/rust_spec.rb index 891599fb0c..30026e09f8 100644 --- a/spec/lexers/rust_spec.rb +++ b/spec/lexers/rust_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Rust do let(:subject) { Rouge::Lexers::Rust.new } diff --git a/spec/lexers/scala_spec.rb b/spec/lexers/scala_spec.rb index da3f05bb27..112d0912e6 100644 --- a/spec/lexers/scala_spec.rb +++ b/spec/lexers/scala_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Scala do let(:subject) { Rouge::Lexers::Scala.new } diff --git a/spec/lexers/scheme_spec.rb b/spec/lexers/scheme_spec.rb index be72031359..eb42081689 100644 --- a/spec/lexers/scheme_spec.rb +++ b/spec/lexers/scheme_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Scheme do let(:subject) { Rouge::Lexers::Scheme.new } diff --git a/spec/lexers/sed_spec.rb b/spec/lexers/sed_spec.rb index 1e30932cc6..9223ffcaa7 100644 --- a/spec/lexers/sed_spec.rb +++ b/spec/lexers/sed_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Sed do let(:subject) { Rouge::Lexers::Sed.new } diff --git a/spec/lexers/shell_spec.rb b/spec/lexers/shell_spec.rb index 1c95007aa8..1fdccd0e83 100644 --- a/spec/lexers/shell_spec.rb +++ b/spec/lexers/shell_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Shell do let(:subject) { Rouge::Lexers::Shell.new } diff --git a/spec/lexers/sieve_spec.rb b/spec/lexers/sieve_spec.rb index 7fa969e25e..d9be367ceb 100644 --- a/spec/lexers/sieve_spec.rb +++ b/spec/lexers/sieve_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Sieve do let(:subject) { Rouge::Lexers::Sieve.new } diff --git a/spec/lexers/slim_spec.rb b/spec/lexers/slim_spec.rb index e10aa2ad45..3750f83982 100644 --- a/spec/lexers/slim_spec.rb +++ b/spec/lexers/slim_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Slim do let(:subject) { Rouge::Lexers::Slim.new } diff --git a/spec/lexers/smalltalk_spec.rb b/spec/lexers/smalltalk_spec.rb index 10ac2da2e4..edf8f79e02 100644 --- a/spec/lexers/smalltalk_spec.rb +++ b/spec/lexers/smalltalk_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Smalltalk do let(:subject) { Rouge::Lexers::Smalltalk.new } diff --git a/spec/lexers/smarty_spec.rb b/spec/lexers/smarty_spec.rb index 2fff8cead1..0691bad035 100644 --- a/spec/lexers/smarty_spec.rb +++ b/spec/lexers/smarty_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Smarty do let(:subject) { Rouge::Lexers::Smarty.new } diff --git a/spec/lexers/sml_spec.rb b/spec/lexers/sml_spec.rb index 0cfb51b2be..52416fe8e7 100644 --- a/spec/lexers/sml_spec.rb +++ b/spec/lexers/sml_spec.rb @@ -1,4 +1,5 @@ # # -*- coding: utf-8 -*- # +# frozen_string_literal: true # describe Rouge::Lexers::Sml do # let(:subject) { Rouge::Lexers::Sml.new } diff --git a/spec/lexers/sqf_spec.rb b/spec/lexers/sqf_spec.rb index e3236cfbcb..15c72724f9 100644 --- a/spec/lexers/sqf_spec.rb +++ b/spec/lexers/sqf_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::SQF do let(:subject) { Rouge::Lexers::SQF.new } diff --git a/spec/lexers/sql_spec.rb b/spec/lexers/sql_spec.rb index e86a7c86e2..46021ab5dd 100644 --- a/spec/lexers/sql_spec.rb +++ b/spec/lexers/sql_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::SQL do let(:subject) { Rouge::Lexers::SQL.new } diff --git a/spec/lexers/swift_spec.rb b/spec/lexers/swift_spec.rb index 27a21727bf..1c43e4bf7b 100644 --- a/spec/lexers/swift_spec.rb +++ b/spec/lexers/swift_spec.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true describe Rouge::Lexers::Swift do let(:subject) { Rouge::Lexers::Swift.new } @@ -15,7 +16,7 @@ include Support::Lexing it 'lexes multiline comments with asterisks and forward slashes' do - multiline_comment = <