Skip to content

Commit 583e427

Browse files
committed
Removed text/plain from MIME types in gedit/scala.lang.
text/plain shouldn't appear in this file, since that causes gedit to apply Scala highlighting to plain text files. I also updated the install path in the comment at the top of the file.
1 parent d902352 commit 583e427

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tool-support/src/gedit/scala.lang

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
33
Usage:
4-
1. Place this file in ~/.gnome2/gtksourceview-1.0/language-specs/scala.lang
4+
1. Place this file in ~/.local/share/gtksourceview-3.0/language-specs/
55
2. Create a /usr/share/mime/packages/scala-mime.xml with this text:
66
<?xml version="1.0" encoding="UTF-8"?>
77
<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
@@ -15,7 +15,7 @@
1515
<language id="scala" _name="Scala" version="2.0" _section="Sources">
1616

1717
<metadata>
18-
<property name="mimetypes">text/plain;text/x-scala</property>
18+
<property name="mimetypes">text/x-scala</property>
1919
<property name="globs">*.scala</property>
2020
<property name="line-comment-start">//</property>
2121
<property name="block-comment-start">/*</property>
@@ -382,4 +382,4 @@
382382
</context>
383383

384384
</definitions>
385-
</language>
385+
</language>

0 commit comments

Comments
 (0)