From afbb1d5e9ac9c9569688d2a749283430538dad73 Mon Sep 17 00:00:00 2001 From: Dennis Kehrig Date: Tue, 19 Mar 2013 22:57:35 +0100 Subject: [PATCH] Mentioned the possibility of numbers for language IDs in the documentation --- src/language/LanguageManager.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/language/LanguageManager.js b/src/language/LanguageManager.js index 04e8c045ac5..25348e6fee4 100644 --- a/src/language/LanguageManager.js +++ b/src/language/LanguageManager.js @@ -179,7 +179,7 @@ define(function (require, exports, module) { /** * Resolves a language ID to a Language object. - * @param {!string} id Identifier for this language, use only letters a-z and _ inbetween (i.e. "cpp", "foo_bar") + * @param {!string} id Identifier for this language, use only letters a-z or digits 0-9 and _ inbetween (i.e. "cpp", "foo_bar", "c99") * @return {Language} The language with the provided identifier or undefined */ function getLanguage(id) { @@ -244,7 +244,7 @@ define(function (require, exports, module) { * @constructor * Model for a language. * - * @param {!string} id Identifier for this language, use only letters a-z and _ inbetween (i.e. "cpp", "foo_bar") + * @param {!string} id Identifier for this language, use only letters a-z or digits 0-9 and _ inbetween (i.e. "cpp", "foo_bar", "c99") * @param {!string} name Human-readable name of the language, as it's commonly referred to (i.e. "C++") */ function Language(id, name) { @@ -571,7 +571,7 @@ define(function (require, exports, module) { /** * Defines a language. * - * @param {!string} id Unique identifier for this language, use only letters a-z, numbers and _ inbetween (i.e. "cpp", "foo_bar") + * @param {!string} id Unique identifier for this language, use only letters a-z or digits 0-9, and _ inbetween (i.e. "cpp", "foo_bar", "c99") * @param {!Object} definition An object describing the language * @param {!string} definition.name Human-readable name of the language, as it's commonly referred to (i.e. "C++") * @param {Array.} definition.fileExtensions List of file extensions used by this language (i.e. ["php", "php3"])