-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlanguage-detect.txt
2143 lines (1760 loc) · 40.2 KB
/
language-detect.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
侦测文件类型的方法:
http://www.gnu.org/software/emacs/manual/html_node/emacs/Choosing-Modes.html
the simplest is to put the mode name in the first nonblank line, preceded and
followed by ‘-*-’.
When the first line starts with ‘#!’, you usually cannot use the ‘-*-’
feature on the first line, because the system would get confused when running
the interpreter. So Emacs looks for ‘-*-’ on the second line in such files as
well as on the first line. The same is true for man pages which start with the
magic string ‘'\"’ to specify a list of troff preprocessors.
http://lifegoo.pluskid.org/wiki/EmacsMajorMode.html
你可以显式地为当前的 buffer 选择一个 mode ,但是其实大多数情况 Emacs 会 根据文件名以及出现在文件里面的特殊字符自动选择对应的 mode 。
要显式地选择一种 mode ,可以使用 ``M-x'' 命令,mode 的名字加上 ``-mode'' 就 是设置这个 mode 的命令。例如 ``M-x lisp-mode'' 可以打开 Lisp mode 。
当你访问一个文件的时候,Emacs 一般会根据文件名自动选择正确的 mode ,例 如:当你打开一个文件名以 ``.c'' 结尾的文件时,会自动进入 C mode 。文件名 和 mode 之间的对应关系是由变量 "auto-mode-alist" 来控制的。它是一个表, 表里面的每一个元素有这样的形式:
(REGEXP . MODE-FUNCTION)
或者是这种形式
(REGEXP MODE-FUNCTION FLAG)
例如,表里面有一个元素为 ("\\.c\\'" . c-mode) 所以文件名以 ``.c'' 结尾的 文件会使用 C mode 。如果是第二种形式,并且 FLAG 不是 nil ,那么在调用 了 MODE-FUNCTION 之后,匹配到 REGEXP 的后缀将会被丢弃,并继续寻找下一 个匹配。
你也可以在文件的第一个非空白行添加一些特殊的文本告诉 Emacs 对这个文件 使用某个特定的 mode 。这一行应该包括 ``-*-MODENAME-*-'' 的形式,也允许 其他字符出现在这一行,例如:
;-*-Lisp-*-
告诉 Emacs 在这儿使用 Lisp mode 。这种显式地指定将覆盖通过文件名来选择 的 mode 。另外一种形式是1:
-*- mode: MODENAME;-*-
这样你可以像这样指定一些局部变量:
-*- mode: MODENAME; VAR: VALUE; ... -*-
当一个文件的内容以 ``#!'' 开始,他将被当作 Shell Script 。当你访问这样的 文件而他的文件名有没有对应的 major mode 的时候,Emacs 使用第一行的解释 器的名字来选择 mode ,例如 ``perl'' 、``tcl'' 、``bash'' 等。Emacs 会选择合 适那个解释器的 mode 。这样的选择是由变量 ``interpreter-mode-alist'' 来控 制的。
当一个文件的内容以 ``#!'' 开始的时候,你无法在第一行以 ``-*-'' 的形式来指 定 mode ,因为这样会使 ``#!'' 的功能失效。这个时候 Emacs 会查看第二行是 否有 ``-*-'' 的指定 mode 的指令。
但是这样有时候仍然不够用,例如 Scsh 通常要使用到头部两行,这个时候可以 使用 local variables list 的办法,写在文件末尾。这样的列表必须以包含 Local Variables: 的一行开始,并以包含 End: 的一行结束,每一行有 VARIABLE:VALUE 的形式,这里是一个例子:
;; Local Variables: **
;; mode:lisp **
;; comment-column:0 **
;; comment-start: ";; " **
;; comment-end:"**" **
;; End: **
Emacs 会根据第一行识别出 ;; 是前缀, ** 是后缀,并在处理一下的行的时候 丢弃这些东西,这使得我们可以把这个列表写到注释里面。值得注意的是,如果 要在这里指定 major mode ,应该写在第一行,因为设定 major mode 通常会重 新设定 local variable ,所以在这之前设定的值通常会不起作用。
当你访问一个没有指定 mode 的文件,或者使用 ``C-x b'' 来创建一个新的 buffer 的时候,变量 ``default-major-mode'' 将指定使用哪个 mode 。他的值 一般是 ``fundamental-mode'' 。如果这个变量的值是 nil ,major mode 将会根 据前一个 current buffer 来选取。
当你改变了一个 buffer 的 mode 的时候,你可以用 "M-x normal-mode" 来让 Emacs 自动选择 mode 。这也正是 ``find-file'' 调用来设置 mode 的方法,它 还会处理文件相关的局部变量 (如果有的话) 。
调用命令 ``C-x C-w'' 和 ``set-visited-file-name'' 之后如果新的文件名对应一 个 mode ,那么 Emacs 将进入这个 mode 。但是如果 buffer 的内容指定了一个 mode ,这种情况不会出现。而且,有些 major mode 不允许改变 mode 。你可 以把变量 ``change-major-mode-with-file-name'' 设定为 nil 来关闭这个特性。
Footnote
1. 可以多次使用 mode ,第一个用于指定 major mode ,后面的用于指定 minor mode 。
/usr/bin/ctags -f - --format=2 --excmd=pattern --fields=nks --sort=no --language-force=c --c-kinds=dgsutvf "test.c"
--language-force=<language>
/media/galen_liu/data/apt/exuberant-ctags-5.9~svn20110310/parse.c +85
for (i = 0 ; i < LanguageCount && result == LANG_IGNORE ; ++i)
{
const parserDefinition* const lang = LanguageTable [i];
if (lang->name != NULL)
if (strcasecmp (name, lang->name) == 0) // 忽略大小写
result = i;
}
--fields=[+|-]flags
Specifies the available extension fields which are to be included in the entries of the tag file (see TAG FILE FORMAT, below, for more information). The parameter
flags is a set of one-letter flags, each representing one type of extension field to include, with the following meanings (disabled by default unless indicated):
a Access (or export) of class members
f File-restricted scoping [enabled]
i Inheritance information
k Kind of tag as a single letter [enabled]
K Kind of tag as full name
l Language of source file containing tag
m Implementation information
n Line number of tag definition
s Scope of tag definition [enabled]
S Signature of routine (e.g. prototype or parameter list)
z Include the "kind:" key in kind field
t Type and name of a variable or typedef as "typeref:" field [enabled]
Each letter or group of letters may be preceded by either '+' to add it to the default set, or '-' to exclude it. In the absence of any preceding '+' or '-' sign, only
those kinds explicitly listed in flags will be included in the output (i.e. overriding the default set). This option is ignored if the option --format=1 has been spec‐
ified. The default value of this option is fkst.
--excmd=type
Determines the type of EX command used to locate tags in the source file. [Ignored in etags mode]
The valid values for type (either the entire word or the first letter is accepted) are:
number Use only line numbers in the tag file for locating tags. This has four advantages:
1. Significantly reduces the size of the resulting tag file.
2. Eliminates failures to find tags because the line defining the tag has changed, causing the pattern match to fail (note that some editors, such as vim,
are able to recover in many such instances).
3. Eliminates finding identical matching, but incorrect, source lines (see BUGS, below).
4. Retains separate entries in the tag file for lines which are identical in content. In pattern mode, duplicate entries are dropped because the search pat‐
terns they generate are identical, making the duplicate entries useless.
However, this option has one significant drawback: changes to the source files can cause the line numbers recorded in the tag file to no longer correspond to
the lines in the source file, causing jumps to some tags to miss the target definition by one or more lines. Basically, this option is best used when the
source code to which it is applied is not subject to change. Selecting this option type causes the following options to be ignored: -BF.
pattern Use only search patterns for all tags, rather than the line numbers usually used for macro definitions. This has the advantage of not referencing obsolete
line numbers when lines have been added or removed since the tag file was generated.
mixed In this mode, patterns are generally used with a few exceptions. For C, line numbers are used for macro definition tags. This was the default format generated
by the original ctags and is, therefore, retained as the default for this option. For Fortran, line numbers are used for common blocks because their corre‐
sponding source lines are generally identical, making pattern searches useless for finding all matches.
;; C-h v auto-mode-alist
https://github.com/github/linguist/blob/master/lib/linguist/language.rb#L90
;; STRATEGIES = [
;; Linguist::Strategy::Modeline, 1. 通过modeline侦测是什么语言
;; Linguist::Shebang, 2. 通过第一行的Shebang侦测是什么语言
;; Linguist::Strategy::Filename, 3. 通过文件名来侦测是什么语言
;; Linguist::Heuristics, 4. 探测文件的内容来侦测是什么语言.
;; Linguist::Classifier
]
$ ctags --list-maps
Ant *.build.xml
Asm *.asm *.ASM *.s *.S *.A51 *.29[kK] *.[68][68][kKsSxX] *.[xX][68][68]
Asp *.asp *.asa
Awk *.awk *.gawk *.mawk
Basic *.bas *.bi *.bb *.pb
BETA *.bet
C *.c
C++ *.c++ *.cc *.cp *.cpp *.cxx *.h *.h++ *.hh *.hp *.hpp *.hxx *.C *.H
C# *.cs
Cobol *.cbl *.cob *.CBL *.COB
DosBatch *.bat *.cmd
Eiffel *.e
Erlang *.erl *.ERL *.hrl *.HRL
Flex *.as *.mxml
Fortran *.f *.for *.ftn *.f77 *.f90 *.f95 *.F *.FOR *.FTN *.F77 *.F90 *.F95
Go *.go
HTML *.htm *.html
Java *.java
JavaScript *.js
Lisp *.cl *.clisp *.el *.l *.lisp *.lsp
Lua *.lua
Make *.mak *.mk [Mm]akefile GNUmakefile
MatLab *.m
ObjectiveC *.m *.h
OCaml *.ml *.mli
Pascal *.p *.pas
Perl *.pl *.pm *.plx *.perl
PHP *.php *.php3 *.phtml
Python *.py *.pyx *.pxd *.pxi *.scons
REXX *.cmd *.rexx *.rx
Ruby *.rb *.ruby
Scheme *.SCM *.SM *.sch *.scheme *.scm *.sm
Sh *.sh *.SH *.bsh *.bash *.ksh *.zsh
SLang *.sl
SML *.sml *.sig
SQL *.sql
Tcl *.tcl *.tk *.wish *.itcl
Tex *.tex
Vera *.vr *.vri *.vrh
Verilog *.v
VHDL *.vhdl *.vhd
Vim *.vim
YACC *.y
[galen_liu@inspirit apt]$ ctags --list-kinds
Ant
p projects
t targets
Asm
d defines
l labels
m macros
t types (structs and records)
Asp
d constants
c classes
f functions
s subroutines
v variables
Awk
f functions
Basic
c constants
f functions
l labels
t types
v variables
g enumerations
BETA
f fragment definitions
p all patterns [off]
s slots (fragment uses)
v patterns (virtual or rebound)
C
c classes
d macro definitions
e enumerators (values inside an enumeration)
f function definitions
g enumeration names
l local variables [off]
m class, struct, and union members
n namespaces
p function prototypes [off]
s structure names
t typedefs
u union names
v variable definitions
x external and forward variable declarations [off]
C++
c classes
d macro definitions
e enumerators (values inside an enumeration)
f function definitions
g enumeration names
l local variables [off]
m class, struct, and union members
n namespaces
p function prototypes [off]
s structure names
t typedefs
u union names
v variable definitions
x external and forward variable declarations [off]
C#
c classes
d macro definitions
e enumerators (values inside an enumeration)
E events
f fields
g enumeration names
i interfaces
l local variables [off]
m methods
n namespaces
p properties
s structure names
t typedefs
Cobol
d data items
f file descriptions (FD, SD, RD)
g group items
p paragraphs
P program ids
s sections
DosBatch
l labels
v variables
Eiffel
c classes
f features
l local entities [off]
Erlang
d macro definitions
f functions
m modules
r record definitions
Flex
f functions
c classes
m methods
p properties
v global variables
x mxtags
Fortran
b block data
c common blocks
e entry points
f functions
i interface contents, generic names, and operators [off]
k type and structure components
l labels
L local, common block, and namelist variables [off]
m modules
n namelists
p programs
s subroutines
t derived types and structures
v program (global) and module variables
Go
p packages
f functions
c constants
t types
v variables
HTML
a named anchors
f JavaScript functions
Java
c classes
e enum constants
f fields
g enum types
i interfaces
l local variables [off]
m methods
p packages
JavaScript
f functions
c classes
m methods
p properties
v global variables
Lisp
f functions
Lua
f functions
Make
m macros
MatLab
f function
f function
f function
ObjectiveC
i class interface
I class implementation
p Protocol
m Object's method
c Class' method
v Global variable
F Object field
f A function
p A property
t A type alias
s A type structure
e An enumeration
M A preprocessor macro
OCaml
c classes
m Object's method
M Module or functor
v Global variable
t Type name
f A function
C A constructor
r A 'structure' field
e An exception
Pascal
f functions
p procedures
Perl
c constants
f formats
l labels
p packages
s subroutines
d subroutine declarations [off]
PHP
c classes
i interfaces
d constant definitions
f functions
v variables
v variables
j javascript functions
j javascript functions
j javascript functions
Python
c classes
f functions
m class members
v variables
i imports [off]
REXX
s subroutines
Ruby
c classes
f methods
m modules
F singleton methods
Scheme
f functions
s sets
Sh
f functions
SLang
f functions
n namespaces
SML
e exception declarations
f function definitions
c functor definitions
s signature declarations
r structure declarations
t type definitions
v value bindings
SQL
c cursors
d prototypes [off]
f functions
F record fields
l local variables [off]
L block label
P packages
p procedures
r records [off]
s subtypes
t tables
T triggers
v variables
i indexes
e events
U publications
R services
D domains
V views
n synonyms
x MobiLink Table Scripts
y MobiLink Conn Scripts
z MobiLink Properties
Tcl
c classes
m methods
p procedures
Tex
c chapters
s sections
u subsections
b subsubsections
p parts
P paragraphs
G subparagraphs
i includes
Vera
c classes
d macro definitions
e enumerators (values inside an enumeration)
f function definitions
g enumeration names
l local variables [off]
m class, struct, and union members
p programs
P function prototypes [off]
t tasks
T typedefs
v variable definitions
x external variable declarations [off]
Verilog
c constants (define, parameter, specparam)
e events
f functions
m modules
n net data types
p ports
r register data types
t tasks
VHDL
c constant declarations
t type definitions
T subtype definitions
r record names
e entity declarations
C component declarations [off]
d prototypes [off]
f function prototypes and declarations
p procedure prototypes and declarations
P package definitions
l local definitions [off]
Vim
a autocommand groups
c user-defined commands
f function definitions
m maps
v variable definitions
YACC
l labels
https://github.com/github/linguist/blob/master/lib/linguist/languages.yml
1. Ant *.build.xml
-----------------------
Ant
p projects
t targets
============================
Ant Build System:
type: data
tm_scope: text.xml.ant
filenames:
- ant.xml
- build.xml
ace_mode: xml
detect by filenames: ant.xml,build.xml
2. Asm *.asm *.ASM *.s *.S *.A51 *.29[kK] *.[68][68][kKsSxX] *.[xX][68][68]
-----------------------
Asm
d defines
l labels
m macros
t types (structs and records)
============================
Assembly:
type: programming
color: "#6E4C13"
search_term: nasm
aliases:
- nasm
extensions:
- .asm
- .a51
- .inc
- .nasm
tm_scope: source.asm.x86
ace_mode: assembly_x86
detect by extensions: *.s *.S *.asm *.ASM *.nasm *.a51 *.A51
(who use this?) *.29[kK] *.[68][68][kKsSxX] *.[xX][68][68]
NOTE: too many .inc (in asm, html, pascal, php, sql ), I just ignore it, let user decide file type.
3. Asp *.asp *.asa
-----------------------
Asp
d constants
c classes
f functions
s subroutines
v variables
============================
ASP:
type: programming
color: "#6a40fd"
search_term: aspx-vb
tm_scope: text.html.asp
aliases:
- aspx
- aspx-vb
extensions:
- .asp
- .asax
- .ascx
- .ashx
- .asmx
- .aspx
- .axd
ace_mode: text
detect by extensions: *.asp *.aspx *.asa *.asax *.ascx *.ashx *.asmx *.axd
4. Awk *.awk *.gawk *.mawk
-----------------------
Awk
f functions
============================
Awk:
type: programming
extensions:
- .awk
- .auk
- .gawk
- .mawk
- .nawk
interpreters:
- awk
- gawk
- mawk
- nawk
ace_mode: text
detect by extensions: *.awk *.auk *.gawk *.mawk *.nawk
5. Basic *.bas *.bi *.bb *.pb
-----------------------
Basic
c constants
f functions
l labels
t types
v variables
g enumerations
============================
BlitzBasic:
type: programming
aliases:
- b3d
- blitz3d
- blitzplus
- bplus
extensions:
- .bb
- .decls
tm_scope: source.blitzmax
ace_mode: text
PureBasic:
type: programming
color: "#5a6986"
extensions:
- .pb
- .pbi
tm_scope: none
ace_mode: text
Visual Basic:
type: programming
color: "#945db7"
extensions:
- .vb
- .bas
- .cls
- .frm
- .frx
- .vba
- .vbhtml
- .vbs
tm_scope: source.vbnet
aliases:
- vb.net
- vbnet
ace_mode: text
detect by extensions: *.bas *.bi *.bb *.pb *.pbi *.decls *.vb *.cls *.frm *.frx *.vba *.vbhtml *.vbs
6. BETA *.bet
-----------------------
BETA
f fragment definitions
p all patterns [off]
s slots (fragment uses)
v patterns (virtual or rebound)
============================
detect by extensions: *.bet
7. C *.c
-----------------------
C
c classes
d macro definitions
e enumerators (values inside an enumeration)
f function definitions
g enumeration names
l local variables [off]
m class, struct, and union members
n namespaces
p function prototypes [off]
s structure names
t typedefs
u union names
v variable definitions
x external and forward variable declarations [off]
============================
C:
type: programming
color: "#555555"
extensions:
- .c
- .cats
- .h
- .idc
- .w
interpreters:
- tcc
ace_mode: c_cpp
detect by extensions: *.c *.cats *.idc .w
NOTE: I use C++ parse .h file.
8. C++ *.c++ *.cc *.cp *.cpp *.cxx *.h *.h++ *.hh *.hp *.hpp *.hxx *.C *.H
-----------------------
C++
c classes
d macro definitions
e enumerators (values inside an enumeration)
f function definitions
g enumeration names
l local variables [off]
m class, struct, and union members
n namespaces
p function prototypes [off]
s structure names
t typedefs
u union names
v variable definitions
x external and forward variable declarations [off]
============================
C++:
type: programming
ace_mode: c_cpp
search_term: cpp
color: "#f34b7d"
aliases:
- cpp
extensions:
- .cpp
- .c++
- .cc
- .cp
- .cxx
- .h
- .h++
- .hh
- .hpp
- .hxx
- .inc
- .inl
- .ipp
- .tcc
- .tpp
detect by extensions: *.c++ *.cc *.cp *.cpp *.cxx *.h *.h++ *.hh *.hp *.hpp *.hxx *.C *.H .inl .ipp .tcc .tpp
9. C# *.cs
-----------------------
C#
c classes
d macro definitions
e enumerators (values inside an enumeration)
E events
f fields
g enumeration names
i interfaces
l local variables [off]
m methods
n namespaces
p properties
s structure names
t typedefs
============================
C#:
type: programming
ace_mode: csharp
tm_scope: source.cs
search_term: csharp
color: "#178600"
aliases:
- csharp
extensions:
- .cs
- .cshtml
- .csx
detect by extensions: *.cs *.csx *.cshtml
10. Cobol *.cbl *.cob *.CBL *.COB
-----------------------
Cobol
d data items
f file descriptions (FD, SD, RD)
g group items
p paragraphs
P program ids
s sections
============================
detect by extensions: *.cbl *.cob *.CBL *.COB
11. DosBatch *.bat *.cmd
-----------------------
DosBatch
l labels
v variables
============================
Batchfile:
type: programming
search_term: bat
aliases:
- bat
- batch
- dosbatch
- winbatch
extensions:
- .bat
- .cmd
tm_scope: source.dosbatch
ace_mode: batchfile
detect by extensions: *.bat *.cmd
12. Eiffel *.e
-----------------------
Eiffel
c classes
f features
l local entities [off]
============================
Eiffel:
type: programming
color: "#946d57"
extensions:
- .e
ace_mode: eiffel
detect by extensions: .e
13. Erlang *.erl *.ERL *.hrl *.HRL
-----------------------
Erlang
d macro definitions
f functions
m modules
r record definitions
============================
Erlang:
type: programming
color: "#B83998"
extensions:
- .erl
- .es
- .escript
- .hrl
filenames:
- rebar.config
- rebar.config.lock
- rebar.lock
ace_mode: erlang
interpreters:
- escript
1st detect by filenames: rebar.config rebar.config.lock rebar.lock
2st detect by extensions: *.erl *.ERL *.hrl *.HRL .es .escript
14. Flex *.as *.mxml
-----------------------
Flex
f functions
c classes
m methods
p properties
v global variables
x mxtags
============================
detect by extensions: *.as *.mxml
15 .Fortran *.f *.for *.ftn *.f77 *.f90 *.f95 *.F *.FOR *.FTN *.F77 *.F90 *.F95
-----------------------
Fortran
b block data
c common blocks
e entry points
f functions
i interface contents, generic names, and operators [off]
k type and structure components
l labels
L local, common block, and namelist variables [off]
m modules
n namelists
p programs
s subroutines
t derived types and structures
v program (global) and module variables
============================
FORTRAN:
type: programming
color: "#4d41b1"
extensions:
- .f90
- .f
- .f03
- .f08
- .f77
- .f95
- .for
- .fpp
tm_scope: source.fortran.modern
ace_mode: text
detect by extensions: *.f *.for *.ftn *.f77 *.f90 *.f95 *.F *.FOR *.FTN *.F77 *.F90 *.F95 .f03 .f08 .fpp
16. Go *.go
-----------------------
Go
p packages
f functions
c constants
t types
v variables
============================
Go:
type: programming
color: "#375eab"
extensions:
- .go
ace_mode: golang
detect by extensions: .go
17. HTML *.htm *.html
-----------------------
HTML
a named anchors
f JavaScript functions
============================
HTML:
type: markup
tm_scope: text.html.basic
ace_mode: html
color: "#e44b23"
aliases:
- xhtml
extensions:
- .html
- .htm
- .html.hl
- .inc
- .st