Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Commit b89e33d

Browse files
committed
Remove (annoying) deprecation warning and documentation
1 parent 9969073 commit b89e33d

File tree

2 files changed

+2
-15
lines changed

2 files changed

+2
-15
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ _Note:_ A subset of this functionality is now available directly in Atom--see [C
66

77
## Extension Matchers
88

9-
_NOTE:_ DEPRECATED! Prefer using RegExp Matchers instead.
10-
119
To map a filetype to a new language, use the `file-types` option. Specify the extension (without a dot) as a key, and the new default extension as the value.
1210

1311
For example, the `.hbs` extension defaults to the `handlebars` grammer. To change it to default to `html-htmlbars` (installed separately), open your `config.cson` (via the `Atom -> Config...` menu) and add the following rule:
@@ -18,7 +16,7 @@ For example, the `.hbs` extension defaults to the `handlebars` grammer. To chang
1816
"hbs": "text.html.htmlbars"
1917
```
2018

21-
An extension matcher will be converted into a RegExp matcher, due to deprecation. The example above is equivalent to the following:
19+
An extension matcher will be converted into a RegExp matcher. The example above is equivalent to the following:
2220

2321
```coffee
2422
"*":

lib/matcher.coffee

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,7 @@ class Matcher
1919
else if /(^\^)|([.|])|(\$$)/.test matcher
2020
@_regexp = new RegExp "(#{matcher})", regexpOpts
2121
else
22-
# Otherwise, we assume it is an extension matcher, which is now deprecated
23-
atom.notifications.addWarning '[file-types] Deprecated Config',
24-
dismissable: true
25-
detail: """
26-
Use explicit regular expressions!
27-
28-
Deprecated:
29-
"#{matcher}": "#{scopeName}"
30-
31-
Preferred:
32-
"\\\\.#{matcher}$": "#{scopeName}"
33-
"""
22+
# Otherwise, we assume it is an extension matcher
3423
@_regexp = new RegExp "(\\.#{escapeRegExp(matcher)}$)", regexpOpts
3524

3625
match: (string) ->

0 commit comments

Comments
 (0)