@@ -63,18 +63,18 @@ static void initializeSCSSParser (const langType language)
6363 " % module-name offset' count namespace-string\n"
6464 " _copyinterval\n"
6565 " dup length 0 gt {\n"
66- " /namespace @1 _tag _commit pop \n"
66+ " /namespace @1 _tag _commit \\1 SCSS.module: \n"
6767 " } {\n"
6868 " clear\n"
6969 " } ifelse\n"
7070 " } {\n"
7171 " % Extract the module name as a namespace.\n"
72- " \\1 /namespace @1 _tag _commit pop \n"
72+ " \\1 /namespace @1 _tag _commit \\1 SCSS.module: \n"
7373 " } ifelse\n"
7474 " } {\n"
7575 " % \"as *\" doesn't make a namespace.\n"
7676 " \\3 (*) ne {\n"
77- " \\3 /namespace @3 _tag _commit pop \n"
77+ " \\3 /namespace @3 _tag _commit \\1 SCSS.module: \n"
7878 " } if\n"
7979 " } ifelse\n"
8080 "}}" , NULL );
@@ -233,6 +233,17 @@ extern parserDefinition* SCSSParser (void)
233233 ATTACH_ROLES (SCSSModuleRoleTable ),
234234 },
235235 };
236+ static fieldDefinition SCSSFieldTable [] = {
237+ {
238+ .enabled = true,
239+ .name = "module" ,
240+ .description = "the name of module behind the namespace" ,
241+ .dataType = FIELDTYPE_SCRIPTABLE |FIELDTYPE_STRING ,
242+ .isValueAvailable = isValueAvailableGeneric ,
243+ .getValueObject = getFieldValueGeneric ,
244+ .setValueObject = setFieldValueGeneric ,
245+ },
246+ };
236247
237248 parserDefinition * const def = parserNew ("SCSS" );
238249
@@ -246,6 +257,8 @@ extern parserDefinition* SCSSParser (void)
246257 def -> useCork = CORK_QUEUE ;
247258 def -> kindTable = SCSSKindTable ;
248259 def -> kindCount = ARRAY_SIZE (SCSSKindTable );
260+ def -> fieldTable = SCSSFieldTable ;
261+ def -> fieldCount = ARRAY_SIZE (SCSSFieldTable );
249262 def -> initialize = initializeSCSSParser ;
250263
251264 return def ;
0 commit comments