Skip to content

Commit 564701b

Browse files
LeaVerouDmitrySharabin
authored andcommitted
Move language utils to util/ and separate them out
1 parent 2a6e27c commit 564701b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+167
-164
lines changed

src/core/registry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { extend } from '../shared/language-util';
21
import { kebabToCamelCase } from '../shared/util';
32
import { forEach } from '../util/iterables';
3+
import { extend } from '../util/language-util';
44
import type { ComponentProto, Grammar } from '../types';
55
import type { Prism } from './prism';
66

src/languages/actionscript.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { insertBefore } from '../shared/language-util';
1+
import { insertBefore } from '../util/language-util';
22
import javascript from './javascript';
33
import type { GrammarToken, LanguageProto } from '../types';
44

src/languages/aspnet.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { insertBefore } from '../shared/language-util';
1+
import { insertBefore } from '../util/language-util';
22
import csharp from './csharp';
33
import markup from './markup';
44
import type { Grammar, GrammarToken, LanguageProto } from '../types';

src/languages/birb.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { insertBefore } from '../shared/language-util';
1+
import { insertBefore } from '../util/language-util';
22
import clike from './clike';
33
import type { LanguageProto } from '../types';
44

src/languages/bison.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { insertBefore } from '../shared/language-util';
1+
import { insertBefore } from '../util/language-util';
22
import c from './c';
33
import type { Grammar, LanguageProto } from '../types';
44

src/languages/c.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { insertBefore } from '../shared/language-util';
1+
import { insertBefore } from '../util/language-util';
22
import clike from './clike';
33
import type { GrammarToken, LanguageProto } from '../types';
44

src/languages/cfscript.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { insertBefore } from '../shared/language-util';
1+
import { insertBefore } from '../util/language-util';
22
import clike from './clike';
33
import type { LanguageProto } from '../types';
44

src/languages/chaiscript.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { insertBefore } from '../shared/language-util';
21
import { toArray } from '../util/iterables';
2+
import { insertBefore } from '../util/language-util';
33
import clike from './clike';
44
import cpp from './cpp';
55
import type { LanguageProto } from '../types';

src/languages/cilkc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { insertBefore } from '../shared/language-util';
1+
import { insertBefore } from '../util/language-util';
22
import c from './c';
33
import type { LanguageProto } from '../types';
44

src/languages/cilkcpp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { insertBefore } from '../shared/language-util';
1+
import { insertBefore } from '../util/language-util';
22
import cpp from './cpp';
33
import type { LanguageProto } from '../types';
44

0 commit comments

Comments
 (0)