Skip to content

Commit 5d7734a

Browse files
authored
chore: remove 2nd 'Plain Text' and fixed the order of 'Pug' (#265)
1 parent ca1aad6 commit 5d7734a

File tree

2 files changed

+12
-14
lines changed

2 files changed

+12
-14
lines changed

src/renderer/components/editor/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ This is a list of language that supports in massCode.
105105
- PHP (Blade Template)
106106
- Pig
107107
- Plain Text
108-
- Plain Text
109108
- Powershell
110109
- Praat
111110
- Prisma

src/renderer/components/editor/languages.ts

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -375,12 +375,6 @@ export const languages: LanguageOption[] = [
375375
grammar: () => import('./grammars/io.tmLanguage.json'),
376376
scopeName: 'source.io'
377377
},
378-
{
379-
name: 'Pug',
380-
value: 'pug',
381-
grammar: () => import('./grammars/pug.tmLanguage.json'),
382-
scopeName: 'text.pug'
383-
},
384378
{
385379
name: 'Java',
386380
value: 'java',
@@ -622,7 +616,12 @@ export const languages: LanguageOption[] = [
622616
grammar: () => import('./grammars/pig.tmLanguage.json'),
623617
scopeName: 'source.pig'
624618
},
625-
{ name: 'Plain Text', value: 'plain_text' },
619+
{
620+
name: 'Plain Text',
621+
value: 'plain_text',
622+
grammar: () => import('./grammars/plain-text.tmLanguage.json'),
623+
scopeName: 'text.plain'
624+
},
626625
{
627626
name: 'Powershell',
628627
value: 'powershell',
@@ -659,6 +658,12 @@ export const languages: LanguageOption[] = [
659658
grammar: () => import('./grammars/protobuf.tmLanguage.json'),
660659
scopeName: 'source.proto'
661660
},
661+
{
662+
name: 'Pug',
663+
value: 'pug',
664+
grammar: () => import('./grammars/pug.tmLanguage.json'),
665+
scopeName: 'text.pug'
666+
},
662667
{
663668
name: 'Puppet',
664669
value: 'puppet',
@@ -857,12 +862,6 @@ export const languages: LanguageOption[] = [
857862
grammar: () => import('./grammars/tex.tmLanguage.json'),
858863
scopeName: 'text.tex'
859864
},
860-
{
861-
name: 'Plain Text',
862-
value: 'plain_text',
863-
grammar: () => import('./grammars/plain-text.tmLanguage.json'),
864-
scopeName: 'text.plain'
865-
},
866865
{
867866
name: 'Textile',
868867
value: 'textile',

0 commit comments

Comments
 (0)