package.json 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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. "snippets": [
  56. {
  57. "language": "modula2",
  58. "path": "./snippets/modula2.json"
  59. },
  60. {
  61. "language": "modula2-definition",
  62. "path": "./snippets/modula2-definition.json"
  63. }
  64. ],
  65. "configuration": {
  66. "title": "Modula-2",
  67. "properties": {
  68. "modula2.uppercaseKeywords": {
  69. "type": "boolean",
  70. "default": true,
  71. "description": "Uppercase a Modula-2 keyword when the completed token is followed by a non-identifier character."
  72. },
  73. "modula2.cocoR.validatorCommand": {
  74. "type": "string",
  75. "default": "/home/eric/Projets/Projets-Modula2/MyWork/Theia/GNU-grammar/bin/GM2",
  76. "description": "Executable that validates a Modula-2 source file using the generated Coco/R parser. Leave empty to disable Coco/R diagnostics."
  77. },
  78. "modula2.cocoR.validatorArguments": {
  79. "type": "array",
  80. "items": {
  81. "type": "string"
  82. },
  83. "default": [
  84. "{file}"
  85. ],
  86. "description": "Arguments passed to the Coco/R validator. Use {file} for the temporary source file."
  87. }
  88. }
  89. }
  90. },
  91. "scripts": {
  92. "clean": "rimraf out",
  93. "build": "tsc -p tsconfig.json",
  94. "prepare": "yarn build",
  95. "watch": "tsc -p tsconfig.json --watch"
  96. },
  97. "devDependencies": {
  98. "@types/node": "^24.0.0",
  99. "@types/vscode": "^1.90.0",
  100. "rimraf": "^6.0.1",
  101. "typescript": "^5.9.2"
  102. },
  103. "dependencies": {
  104. "vscode-languageclient": "^9.0.1",
  105. "vscode-languageserver": "^9.0.1",
  106. "vscode-languageserver-textdocument": "^1.0.11"
  107. }
  108. }