Skip to content

Commit

Permalink
clean up and make grammar names more consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
joshgoebel committed Feb 2, 2020
1 parent c8ae19f commit 6c20b9b
Show file tree
Hide file tree
Showing 20 changed files with 37 additions and 35 deletions.
30 changes: 15 additions & 15 deletions src/languages/1c.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Language: 1C:Enterprise (v7, v8)
Language: 1C:Enterprise
Author: Stanislav Belov <stbelov@gmail.com>
Description: built-in language 1C:Enterprise (v7, v8)
Category: enterprise
Expand All @@ -9,7 +9,7 @@ function(hljs){

// общий паттерн для определения идентификаторов
var UNDERSCORE_IDENT_RE = '[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]+';

// v7 уникальные ключевые слова, отсутствующие в v8 ==> keyword
var v7_keywords =
'далее ';
Expand All @@ -21,7 +21,7 @@ function(hljs){

// keyword : ключевые слова
var KEYWORD = v7_keywords + v8_keywords;

// v7 уникальные директивы, отсутствующие в v8 ==> meta-keyword
var v7_meta_keywords =
'загрузитьизфайла ';
Expand All @@ -38,7 +38,7 @@ function(hljs){
// v7 системные константы ==> built_in
var v7_system_constants =
'разделительстраниц разделительстрок символтабуляции ';

// v7 уникальные методы глобального контекста, отсутствующие в v8 ==> built_in
var v7_global_context_methods =
'ansitooem oemtoansi ввестивидсубконто ввестиперечисление ввестипериод ввестиплансчетов выбранныйплансчетов ' +
Expand All @@ -52,7 +52,7 @@ function(hljs){
'префиксавтонумерации пропись пустоезначение разм разобратьпозициюдокумента рассчитатьрегистрына ' +
'рассчитатьрегистрыпо симв создатьобъект статусвозврата стрколичествострок сформироватьпозициюдокумента ' +
'счетпокоду текущеевремя типзначения типзначениястр установитьтана установитьтапо фиксшаблон шаблон ';

// v8 методы глобального контекста ==> built_in
var v8_global_context_methods =
'acos asin atan base64значение base64строка cos exp log log10 pow sin sqrt tan xmlзначение xmlстрока ' +
Expand Down Expand Up @@ -147,7 +147,7 @@ function(hljs){
v7_system_constants +
v7_global_context_methods + v8_global_context_methods +
v8_global_context_property;

// v8 системные наборы значений ==> class
var v8_system_sets_of_values =
'webцвета windowsцвета windowsшрифты библиотекакартинок рамкистиля символы цветастиля шрифтыстиля ';
Expand Down Expand Up @@ -299,7 +299,7 @@ function(hljs){
'кодировкаименфайловвzipфайле методсжатияzip методшифрованияzip режимвосстановленияпутейфайловzip режимобработкиподкаталоговzip ' +
'режимсохраненияпутейzip уровеньсжатияzip ';

// v8 системные перечисления -
// v8 системные перечисления -
// Блокировка данных, Фоновые задания, Автоматизированное тестирование,
// Доставляемые уведомления, Встроенные покупки, Интернет, Работа с двоичными данными ==> class
var v8_system_enums_other =
Expand Down Expand Up @@ -418,7 +418,7 @@ function(hljs){

// literal : примитивные типы
var LITERAL = 'null истина ложь неопределено';

// number : числа
var NUMBERS = hljs.inherit(hljs.NUMBER_MODE);

Expand All @@ -439,10 +439,10 @@ function(hljs){
}
]
};

// comment : комментарии
var COMMENTS = hljs.inherit(hljs.C_LINE_COMMENT_MODE);

// meta : инструкции препроцессора, директивы компиляции
var META = {
className: 'meta',
Expand All @@ -453,13 +453,13 @@ function(hljs){
COMMENTS
]
};

// symbol : метка goto
var SYMBOL = {
className: 'symbol',
begin: '~', end: ';|:', excludeEnd: true
};
};

// function : объявление процедур и функций
var FUNCTION = {
className: 'function',
Expand Down Expand Up @@ -511,6 +511,6 @@ function(hljs){
NUMBERS,
STRINGS,
DATE
]
]
}
}
}
2 changes: 1 addition & 1 deletion src/languages/accesslog.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Language: Access log
Language: Apache Access Log
Author: Oleg Efimov <efimovov@gmail.com>
Description: Apache/Nginx Access Logs
Website: https://httpd.apache.org/docs/2.4/logs.html#accesslog
Expand Down
2 changes: 1 addition & 1 deletion src/languages/apache.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Language: Apache
Language: Apache config
Author: Ruslan Keba <rukeba@gmail.com>
Contributors: Ivan Sagalaev <maniac@softwaremaniacs.org>
Website: https://httpd.apache.org
Expand Down
2 changes: 1 addition & 1 deletion src/languages/avrasm.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Language: AVR Assembler
Language: AVR Assembly
Author: Vladimir Ermakov <vooon341@gmail.com>
Category: assembler
Website: https://www.microchip.com/webdoc/avrassembler/avrassembler.wb_instruction_list.html
Expand Down
4 changes: 2 additions & 2 deletions src/languages/basic.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Language: Basic
Language: BASIC
Author: Raphaël Assénat <raph@raphnet.net>
Description: Based on the BASIC reference from the Tandy 1000 guide
Website: https://en.wikipedia.org/wiki/Tandy_1000
Expand All @@ -8,7 +8,7 @@ function(hljs) {
return {
case_insensitive: true,
illegal: '^\.',
// Support explicitely typed variables that end with $%! or #.
// Support explicitly typed variables that end with $%! or #.
lexemes: '[a-zA-Z][a-zA-Z0-9_\$\%\!\#]*',
keywords: {
keyword:
Expand Down
2 changes: 1 addition & 1 deletion src/languages/dns.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Language: DNS Zone file
Language: DNS Zone
Author: Tim Schumacher <tim@datenknoten.me>
Category: config
Website: https://en.wikipedia.org/wiki/Zone_file
Expand Down
2 changes: 1 addition & 1 deletion src/languages/dos.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Language: DOS .bat
Language: Batch file (DOS)
Author: Alexander Makarov <sam@rmcreative.ru>
Contributors: Anton Kochkov <anton.kochkov@gmail.com>
Website: https://en.wikipedia.org/wiki/Batch_file
Expand Down
2 changes: 1 addition & 1 deletion src/languages/excel.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Language: Excel
Language: Excel formulae
Author: Victor Zhou <OiCMudkips@users.noreply.github.com>
Description: Excel formulae
Website: https://products.office.com/en-us/excel/
Expand Down
2 changes: 1 addition & 1 deletion src/languages/haml.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Language: Haml
Language: HAML
Requires: ruby.js
Author: Dan Allen <dan.j.allen@gmail.com>
Website: http://haml.info
Expand Down
2 changes: 1 addition & 1 deletion src/languages/jboss-cli.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Language: jboss-cli
Language: JBoss CLI
Author: Raphaël Parrëe <rparree@edc4it.com>
Description: language definition jboss cli
Website: https://docs.jboss.org/author/display/WFLY/Command+Line+Interface
Expand Down
2 changes: 1 addition & 1 deletion src/languages/json.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Language: JSON / JSON with Comments
Language: JSON
Description: JSON (JavaScript Object Notation) is a lightweight data-interchange format.
Author: Ivan Sagalaev <maniac@softwaremaniacs.org>
Website: http://www.json.org
Expand Down
2 changes: 1 addition & 1 deletion src/languages/nginx.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Language: Nginx
Language: Nginx config
Author: Peter Leonov <gojpeg@yandex.ru>
Contributors: Ivan Sagalaev <maniac@softwaremaniacs.org>
Category: common, config
Expand Down
2 changes: 1 addition & 1 deletion src/languages/pf.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Language: pf.conf
Language: packet filter config
Description: pf.conf — packet filter configuration file (OpenBSD)
Author: Peter Piwowarski <oldlaptop654@aol.com>
Website: http://man.openbsd.org/pf.conf
Expand Down
2 changes: 1 addition & 1 deletion src/languages/pgsql.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Language: PostgreSQL SQL dialect and PL/pgSQL
Language: PostgreSQL and PL/pgSQL
Author: Egor Rogov (e.rogov@postgrespro.ru)
Website: https://www.postgresql.org/docs/11/sql.html
Description:
Expand Down
2 changes: 1 addition & 1 deletion src/languages/plaintext.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Language: plaintext
Language: Plain text
Author: Egor Rogov (e.rogov@postgrespro.ru)
Description: Plain text without any highlighting.
Category: common
Expand Down
2 changes: 1 addition & 1 deletion src/languages/profile.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Language: Python profile
Language: Python profiler
Description: Python profiler results
Author: Brian Beck <exogen@gmail.com>
*/
Expand Down
3 changes: 2 additions & 1 deletion src/languages/properties.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/*
Language: Properties
Language: .properties
Contributors: Valentin Aitken <valentin@nalisbg.com>, Egor Rogov <e.rogov@postgrespro.ru>
Website: https://en.wikipedia.org/wiki/.properties
Category: common, config
*/

Expand Down
2 changes: 1 addition & 1 deletion src/languages/sql.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Language: SQL (Structured Query Language)
Language: SQL
Contributors: Nikolay Lisienko <info@neor.ru>, Heiko August <post@auge8472.de>, Travis Odom <travis.a.odom@gmail.com>, Vadimtro <vadimtro@yahoo.com>, Benjamin Auder <benjamin.auder@gmail.com>
Website: https://en.wikipedia.org/wiki/SQL
Category: common
Expand Down
3 changes: 2 additions & 1 deletion src/languages/tap.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
/*
Language: Test Anything Protocol
Description: TAP, the Test Anything Protocol, is a simple text-based interface between testing modules in a test harness.
Requires: yaml.js
Author: Sergey Bronnikov <sergeyb@bronevichok.ru>
Website: https://bronevichok.ru/
Website: https://testanything.org
*/

function(hljs) {
Expand Down
2 changes: 1 addition & 1 deletion src/languages/vbnet.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Language: VB.NET
Language: Visual Basic .NET
Description: Visual Basic .NET (VB.NET) is a multi-paradigm, object-oriented programming language, implemented on the .NET Framework.
Author: Poren Chiang <ren.chiang@gmail.com>
Website: https://docs.microsoft.com/en-us/dotnet/visual-basic/getting-started/
Expand Down

0 comments on commit 6c20b9b

Please sign in to comment.