Skip to content

Commit

Permalink
Update imports for parser
Browse files Browse the repository at this point in the history
* Update imports for parser.
  • Loading branch information
puckowski committed Jul 21, 2023
1 parent af42cb0 commit bbdbcaf
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 13 deletions.
4 changes: 1 addition & 3 deletions dist/less.js
Original file line number Diff line number Diff line change
Expand Up @@ -4766,7 +4766,7 @@
if (dir) {
var options = (dir ? this.importOptions() : null) || {};
if ((path = this.entities.quoted() || this.entities.url())) {
features = this.mediaFeatures(false);
features = this.mediaFeatures({});
if (!parserInput.$char(';')) {
parserInput.i = index;
error('missing semi-colon or unrecognised media features on import');
Expand Down Expand Up @@ -8605,8 +8605,6 @@
Extend: Extend,
VariableCall: VariableCall,
NamespaceValue: NamespaceValue,
ContainerSyntaxOptions: ContainerSyntaxOptions,
MediaSyntaxOptions: MediaSyntaxOptions,
mixin: {
Call: MixinCall,
Definition: Definition
Expand Down
2 changes: 1 addition & 1 deletion dist/less.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/less.min.js.map

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions packages/less/dist/less.js
Original file line number Diff line number Diff line change
Expand Up @@ -4766,7 +4766,7 @@
if (dir) {
var options = (dir ? this.importOptions() : null) || {};
if ((path = this.entities.quoted() || this.entities.url())) {
features = this.mediaFeatures(false);
features = this.mediaFeatures({});
if (!parserInput.$char(';')) {
parserInput.i = index;
error('missing semi-colon or unrecognised media features on import');
Expand Down Expand Up @@ -8605,8 +8605,6 @@
Extend: Extend,
VariableCall: VariableCall,
NamespaceValue: NamespaceValue,
ContainerSyntaxOptions: ContainerSyntaxOptions,
MediaSyntaxOptions: MediaSyntaxOptions,
mixin: {
Call: MixinCall,
Definition: Definition
Expand Down
2 changes: 1 addition & 1 deletion packages/less/dist/less.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/less/dist/less.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/less/src/less/parser/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -1699,7 +1699,7 @@ const Parser = function Parser(context, imports, fileInfo, currentIndex) {
const options = (dir ? this.importOptions() : null) || {};

if ((path = this.entities.quoted() || this.entities.url())) {
features = this.mediaFeatures(false);
features = this.mediaFeatures({});

if (!parserInput.$char(';')) {
parserInput.i = index;
Expand Down
3 changes: 1 addition & 2 deletions packages/less/src/less/tree/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ import Negative from './negative';
import Extend from './extend';
import VariableCall from './variable-call';
import NamespaceValue from './namespace-value';
import { ContainerSyntaxOptions, MediaSyntaxOptions } from './atrule-syntax';

// mixins
import MixinCall from './mixin-call';
Expand All @@ -48,7 +47,7 @@ export default {
Comment, Anonymous, Value, JavaScript, Assignment,
Condition, Paren, Media, Container, QueryInParens,
UnicodeDescriptor, Negative, Extend, VariableCall,
NamespaceValue, ContainerSyntaxOptions, MediaSyntaxOptions,
NamespaceValue,
mixin: {
Call: MixinCall,
Definition: MixinDefinition
Expand Down

0 comments on commit bbdbcaf

Please # to comment.