Eric Knibbe avatar Eric Knibbe committed 219be8a

clarified terminology

Comments (0)

Files changed (3)

external/lasso-builtins-generator-9.lasso

 
 	This is the shell script that was used to extract Lasso 9's built-in keywords
 	and generate most of the _lassobuiltins.py file. When run, it creates a file
-	named "lassobuiltins-9.py" containing the types, traits, and methods of the
-	currently-installed version of Lasso 9.
+	named "lassobuiltins-9.py" containing the types, traits, methods, and members
+	of the currently-installed version of Lasso 9.
 
-	A partial list of keywords in Lasso 8 can be generated with this code:
+	A list of tags in Lasso 8 can be generated with this code:
 
 	<?LassoScript
 		local('l8tags' = list,
     pygments.lexers._lassobuiltins
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
-    Built-in Lasso types, traits, and methods.
+    Built-in Lasso types, traits, methods, and members.
 
     :copyright: Copyright 2006-'+date->year+' by the Pygments team, see AUTHORS.
     :license: BSD, see LICENSE for details.
 	typesList = list(),
 	traitsList = list(),
 	unboundMethodsList = list(),
-	methodsList = list()
+	memberMethodsList = list()
 )
 
 // types
 	let name = #method->methodName
 	where not #name->asString->endsWith('=')		// skip setter methods
 	where #name->asString->isAlpha(1)		// skip unpublished methods
-	where #methodsList !>> #name
-	do #methodsList->insert(#name)
+	where #memberMethodsList !>> #name
+	do #memberMethodsList->insert(#name)
 }
 
 // traits
 	let name = #method->methodName
 	where not #name->asString->endsWith('=')		// skip setter methods
 	where #name->asString->isAlpha(1)		// skip unpublished methods
-	where #methodsList !>> #name
-	do #methodsList->insert(#name)
+	where #memberMethodsList !>> #name
+	do #memberMethodsList->insert(#name)
 }
 
 // unbound methods
 
 #f->writeString("    ]
 }
-METHODS = {
-    'Methods': [
+MEMBERS = {
+    'Member Methods': [
 ")
-with t in #methodsList
+with t in #memberMethodsList
 do #f->writeString("        '"+string_lowercase(#t->asString)+"',\n")
 
 #f->writeString("    ]

pygments/lexers/_lassobuiltins.py

     pygments.lexers._lassobuiltins
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
-    Built-in Lasso types, traits, and methods.
+    Built-in Lasso types, traits, methods, and members.
 
     :copyright: Copyright 2006-2013 by the Pygments team, see AUTHORS.
     :license: BSD, see LICENSE for details.
         'xsd_type'
     ]
 }
-METHODS = {
-    'Methods': [
+MEMBERS = {
+    'Member Methods': [
         'escape_member',
         'oncompare',
         'sameas',
         'csscontent',
         'jscontent'
     ],
-    'Lasso 8 Members': [
+    'Lasso 8 Member Tags': [
         'accept',
         'add',
         'addattachment',

pygments/lexers/web.py

     Additional options accepted:
 
     `builtinshighlighting`
-        If given and ``True``, highlight builtin tags, types, traits, and
-        methods (default: ``True``).
+        If given and ``True``, highlight builtin types, traits, methods, and
+        members (default: ``True``).
     `requiredelimiters`
         If given and ``True``, only highlight code between delimiters as Lasso
         (default: ``False``).
             (r"(self)(\s*->\s*)('[a-z_][\w.]*')",
                 bygroups(Name.Builtin.Pseudo, Operator, Name.Variable.Class)),
             (r'(\.\.?)([a-z_][\w.]*)',
-                bygroups(Name.Builtin.Pseudo, Name.Other.Method)),
-            (r'(->\s*)([a-z_][\w.]*)', bygroups(Operator, Name.Other.Method)),
+                bygroups(Name.Builtin.Pseudo, Name.Other.Member)),
+            (r'(->\s*)([a-z_][\w.]*)', bygroups(Operator, Name.Other.Member)),
             (r'(self|inherited|global|void)\b', Name.Builtin.Pseudo),
             (r'-[a-z_][\w.]*', Name.Attribute),
             (r'(::\s*)([a-z_][\w.]*)', bygroups(Punctuation, Name.Label)),
             options, 'requiredelimiters', False)
 
         self._builtins = set()
-        self._methods = set()
+        self._members = set()
         if self.builtinshighlighting:
-            from pygments.lexers._lassobuiltins import BUILTINS, METHODS
+            from pygments.lexers._lassobuiltins import BUILTINS, MEMBERS
             for key, value in BUILTINS.iteritems():
                 self._builtins.update(value)
-            for key, value in METHODS.iteritems():
-                self._methods.update(value)
+            for key, value in MEMBERS.iteritems():
+                self._members.update(value)
         RegexLexer.__init__(self, **options)
 
     def get_tokens_unprocessed(self, text):
         for index, token, value in \
             RegexLexer.get_tokens_unprocessed(self, text, stack):
             if (token is Name.Other and value.lower() in self._builtins or
-                token is Name.Other.Method and value.lower() in self._methods):
+                token is Name.Other.Member and value.lower() in self._members):
                 yield index, Name.Builtin, value
                 continue
             yield index, token, value
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.