code: function parseAttribute(stream, state) {
          var quote = stream.next();
          if(quote != "\"" && quote != "'") {
              // attribute must be quoted
              stream.skipToEnd();
              state.tokenize = parseElement;
              return STYLE_ERROR;
          }
          
          state.tokParams.quote = quote;    
          state.tokenize = parseAttributeValue;
          return STYLE_WORD;
      }
docs: ///////////////////////////////////////////////////////////////////////// context: attribute  attribute values may contain everything, except: - the ending quote (with ' or ") - this marks the end of the value - the character "<" - should never appear - ampersand ("&") - unless it starts a reference: a string that ends with a semi-colon (";") ---> note: this parser is lax in what may be put into a reference string, ---> consult http://www.w3.org/TR/REC-xml/#NT-Reference if you want to make it tighter