mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
'Text' doesn't qualify as a valid modeline language.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
module Linguist
|
||||
module Strategy
|
||||
class Modeline
|
||||
EmacsModeline = /-\*-\s*(?:mode:)?\s*(\w+);?\s*-\*-/
|
||||
EmacsModeline = /-\*-\s*mode:\s*(\w+);?\s*-\*-/
|
||||
VimModeline = /\/\*\s*vim:\s*set\s*(?:ft|filetype)=(\w+):\s*\*\//
|
||||
|
||||
# Public: Detects language based on Vim and Emacs modelines
|
||||
|
||||
@@ -1 +1 @@
|
||||
; -*-Smalltalk-*-
|
||||
; -*-mode:Smalltalk-*-
|
||||
|
||||
Reference in New Issue
Block a user