package.json 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. {
  2. "name": "modula2-language",
  3. "displayName": "GNU Modula-2 Language Support",
  4. "version": "0.1.5",
  5. "publisher": "modula2",
  6. "license": "MIT",
  7. "engines": {
  8. "vscode": "^1.90.0"
  9. },
  10. "categories": [
  11. "Programming Languages"
  12. ],
  13. "activationEvents": [
  14. "onLanguage:modula2",
  15. "onLanguage:modula2-definition"
  16. ],
  17. "main": "./out/extension.js",
  18. "contributes": {
  19. "languages": [
  20. {
  21. "id": "modula2",
  22. "aliases": [
  23. "Modula-2",
  24. "modula2"
  25. ],
  26. "extensions": [
  27. ".mod"
  28. ],
  29. "configuration": "./language-configuration.json"
  30. },
  31. {
  32. "id": "modula2-definition",
  33. "aliases": [
  34. "Modula-2 Definition",
  35. "modula2-definition"
  36. ],
  37. "extensions": [
  38. ".def"
  39. ],
  40. "configuration": "./language-configuration.json"
  41. }
  42. ],
  43. "grammars": [
  44. {
  45. "language": "modula2",
  46. "scopeName": "source.modula2",
  47. "path": "./syntaxes/modula2.tmLanguage.json"
  48. },
  49. {
  50. "language": "modula2-definition",
  51. "scopeName": "source.modula2.definition",
  52. "path": "./syntaxes/modula2-definition.tmLanguage.json"
  53. }
  54. ],
  55. "jsonValidation": [
  56. {
  57. "fileMatch": "modula2.json",
  58. "url": "./modula2-schema.json"
  59. }
  60. ],
  61. "snippets": [
  62. {
  63. "language": "modula2",
  64. "path": "./snippets/modula2.json"
  65. },
  66. {
  67. "language": "modula2-definition",
  68. "path": "./snippets/modula2-definition.json"
  69. }
  70. ],
  71. "configuration": {
  72. "title": "Modula-2",
  73. "properties": {
  74. "modula2.uppercaseKeywords": {
  75. "type": "boolean",
  76. "default": true,
  77. "description": "Uppercase a Modula-2 keyword when the completed token is followed by a non-identifier character."
  78. },
  79. "modula2.cocoR.validatorCommand": {
  80. "type": "string",
  81. "default": "/home/eric/Projets/Projets-Modula2/MyWork/Theia/GNU-grammar/bin/GM2",
  82. "description": "Executable that validates a Modula-2 source file using the generated Coco/R parser. Leave empty to disable Coco/R diagnostics."
  83. },
  84. "modula2.cocoR.validatorArguments": {
  85. "type": "array",
  86. "items": {
  87. "type": "string"
  88. },
  89. "default": [
  90. "{file}"
  91. ],
  92. "description": "Arguments passed to the Coco/R validator. Use {file} for the temporary source file."
  93. }
  94. }
  95. }
  96. },
  97. "scripts": {
  98. "clean": "rimraf out",
  99. "build": "tsc -p tsconfig.json",
  100. "prepare": "yarn build",
  101. "watch": "tsc -p tsconfig.json --watch"
  102. },
  103. "devDependencies": {
  104. "@types/node": "^24.0.0",
  105. "@types/vscode": "^1.90.0",
  106. "rimraf": "^6.0.1",
  107. "typescript": "^5.9.2"
  108. },
  109. "dependencies": {
  110. "vscode-languageclient": "^9.0.1",
  111. "vscode-languageserver": "^9.0.1",
  112. "vscode-languageserver-textdocument": "^1.0.11"
  113. }
  114. }