codigo0/node_modules/highlight.js/es/languages/inform7.js
planetazuzu 5d7a6500fe refactor: Fase 1 - Clean Architecture, refactorización modular y eliminación de duplicidades
-  Ticket 1.1: Estructura Clean Architecture en backend
-  Ticket 1.2: Schemas Zod compartidos
-  Ticket 1.3: Refactorización drugs.ts (1362 → 8 archivos modulares)
-  Ticket 1.4: Refactorización procedures.ts (3583 → 6 archivos modulares)
-  Ticket 1.5: Eliminación de duplicidades (~50 líneas)

Cambios principales:
- Creada estructura Clean Architecture en backend/src/
- Schemas Zod compartidos en backend/src/shared/schemas/
- Refactorización modular de drugs y procedures
- Utilidades genéricas en src/utils/ (filter, validation)
- Eliminados scripts obsoletos y documentación antigua
- Corregidos errores: QueryClient, import test-error-handling
- Build verificado y funcionando correctamente
2026-01-25 21:09:47 +01:00

71 lines
1.6 KiB
JavaScript

/*
Language: Inform 7
Author: Bruno Dias <bruno.r.dias@gmail.com>
Description: Language definition for Inform 7, a DSL for writing parser interactive fiction.
Website: http://inform7.com
Category: gaming
*/
function inform7(hljs) {
const START_BRACKET = '\\[';
const END_BRACKET = '\\]';
return {
name: 'Inform 7',
aliases: [ 'i7' ],
case_insensitive: true,
keywords: {
// Some keywords more or less unique to I7, for relevance.
keyword:
// kind:
'thing room person man woman animal container '
+ 'supporter backdrop door '
// characteristic:
+ 'scenery open closed locked inside gender '
// verb:
+ 'is are say understand '
// misc keyword:
+ 'kind of rule' },
contains: [
{
className: 'string',
begin: '"',
end: '"',
relevance: 0,
contains: [
{
className: 'subst',
begin: START_BRACKET,
end: END_BRACKET
}
]
},
{
className: 'section',
begin: /^(Volume|Book|Part|Chapter|Section|Table)\b/,
end: '$'
},
{
// Rule definition
// This is here for relevance.
begin: /^(Check|Carry out|Report|Instead of|To|Rule|When|Before|After)\b/,
end: ':',
contains: [
{
// Rule name
begin: '\\(This',
end: '\\)'
}
]
},
{
className: 'comment',
begin: START_BRACKET,
end: END_BRACKET,
contains: [ 'self' ]
}
]
};
}
export { inform7 as default };