mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	Consistent CodeMirror casing
This commit is contained in:
		| @@ -399,7 +399,7 @@ module Linguist | ||||
|     # Returns a String name or nil | ||||
|     attr_reader :ace_mode | ||||
|  | ||||
|     # Public: Get Codemirror mode (as expressed by a mimetype) | ||||
|     # Public: Get CodeMirror mode (as expressed by a mimetype) | ||||
|     # | ||||
|     # Examples | ||||
|     # | ||||
|   | ||||
| @@ -6,7 +6,7 @@ | ||||
| # ace_mode          - A String name of the Ace Mode used for highlighting whenever | ||||
| #                     a file is edited. This must match one of the filenames in http://git.io/3XO_Cg. | ||||
| #                     Use "text" if a mode does not exist. | ||||
| # codemirror_mode   - A String name of the Codemirror Mode used for highlighting whenever a file is edited. | ||||
| # codemirror_mode   - A String name of the CodeMirror Mode used for highlighting whenever a file is edited. | ||||
| #                     This must match a mode from https://git.io/vi9Fx | ||||
| # wrap              - Boolean wrap to enable line wrapping (default: false) | ||||
| # extensions        - An Array of associated extensions (the first one is | ||||
|   | ||||
| @@ -165,7 +165,7 @@ | ||||
| # Chart.js | ||||
| - (^|/)Chart\.js$ | ||||
|  | ||||
| # Codemirror | ||||
| # CodeMirror | ||||
| - (^|/)[Cc]ode[Mm]irror/(\d+\.\d+/)?(lib|mode|theme|addon|keymap|demo) | ||||
|  | ||||
| # SyntaxHighlighter - http://alexgorbatchev.com/ | ||||
|   | ||||
| @@ -317,7 +317,7 @@ class TestFileBlob < Minitest::Test | ||||
|     assert sample_blob("some/vendored/path/Chart.js").vendored? | ||||
|     assert !sample_blob("some/vendored/path/chart.js").vendored? | ||||
|  | ||||
|     # Codemirror deps | ||||
|     # CodeMirror deps | ||||
|     assert sample_blob("codemirror/mode/blah.js").vendored? | ||||
|     assert sample_blob("codemirror/5.0/mode/blah.js").vendored? | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user