module Schizm

Copyright © 2017-2018 M. Grady Saunders

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above
   copyright notice, this list of conditions and the following
   disclaimer.

2. Redistributions in binary form must reproduce the above
   copyright notice, this list of conditions and the following
   disclaimer in the documentation and/or other materials
   provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Copyright © 2017-2018 M. Grady Saunders

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above
   copyright notice, this list of conditions and the following
   disclaimer.

2. Redistributions in binary form must reproduce the above
   copyright notice, this list of conditions and the following
   disclaimer in the documentation and/or other materials
   provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Copyright © 2017-2018 M. Grady Saunders

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above
   copyright notice, this list of conditions and the following
   disclaimer.

2. Redistributions in binary form must reproduce the above
   copyright notice, this list of conditions and the following
   disclaimer in the documentation and/or other materials
   provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Constants

CENTER_MATH

Center math, content put in match group 1.

CENTER_MATH_ATTRS

Markup attributes for CENTER_MATH.

CHAR_ESCAPE

Character escape, put in match group 1.

CHUNK_BLOCK

Chunk block, content put in match group 1.

CHUNK_LABEL

Chunk label, content put in match group 1.

COLORS

material.io/guidelines/style/color.html

DELIM_BRACES

Matches until an unescaped closing brace.

DELIM_BRACKS

Matches until an unescaped closing bracket.

DELIM_PARENS

Matches until an unescaped closing parenthesis.

EMPTY_LINE

Empty line.

EMPTY_LINES

Empty lines.

END_INDENT

Explicit or implicit end of indent block.

END_SIMPLE

Explicit or implicit end of simple block.

ENTER_ALERT

Enter alert block.

ENTER_ASIDE

Enter aside block.

ENTER_BUG

Enter bug block.

ENTER_CODE

Enter code block.

ENTER_DLIST

Enter dlist element, content put in match group 1.

ENTER_OLIST

Enter olist element.

ENTER_QUOTE

Enter quote block.

ENTER_TEXT

Enter text block.

ENTER_TLIST

Enter tlist element, type put in match group 1.

ENTER_ULIST

Enter ulist element.

EOB_MARKER

Explicit end-of-block marker.

GLYPH

Special ASCII sequences.

HEADER_PATH

Header path, extension put in match group 1.

HEADING_ATX

Atx heading.

HEADING_SETEXT

Setext heading.

HICPP

C++ syntax highlighting.

HICPPNUM

C++ number.

HICPPSTR

C++ string.

HRULE

Horizontal rule.

HTML_ENTITY

HTML entity.

HTML_ESCAPE

HTML special characters.

IMAGE_DEF

Image definition, entry put in match group 1, params put in match group 2.

IMAGE_REF_BRACKS

Image reference, alt put in match group 1, params put in match group 2.

IMAGE_REF_PARENS

Image reference, alt put in match group 1, params put in match group 2.

INDENT

Indent level.

INLINE_CODE

Inline code, content put in match group 1.

INLINE_DEL

Inline delete, content put in match group 1.

INLINE_EMPH

Inline emphasis, depth put in match group 1, content put in match group 2.

INLINE_INS

Inline insert, content put in match group 1.

INLINE_MATH

Inline math, content put in match group 1.

INLINE_MATH_ATTRS

Markup attributes for INLINE_MATH.

INLINE_SUB

Inline subscript, content put in match group 1.

INLINE_SUP

Inline superscript, content put in match group 1.

Link definition, content put in match group 1, params put in match group 2.

Link reference, content put in match group 1, params put in match group 2.

Link reference, content put in match group 1, params put in match group 2.

NOT_CLOSE_BRACE
  1. A character region escaped by inline code delimiters,

  2. a character region escaped by inline math delimiters, or

  3. a character which is not a backslash or a closing brace.

NOT_CLOSE_BRACK
  1. A character region escaped by inline code delimiters,

  2. a character region escaped by inline math delimiters, or

  3. a character which is not a backslash or a closing bracket.

NOT_CLOSE_PAREN
  1. A character region escaped by inline code delimiters,

  2. a character region escaped by inline math delimiters, or

  3. a character which is not a backslash or a closing parenthesis.

SOURCE_PATH

Source path, extension put in match group 1.

SPACE

Space sequence.

Public Class Methods

sass_colors(color, var) click to toggle source

Create Sass-syntax color variables from COLORS.

# File lib/schizm/colors.rb, line 291
def self.sass_colors color, var
  colors = ""
  COLORS[color].each do |key, val|
    colors << "$#{var}-#{key}: #{val[0]};\n"
    colors << "$#{var}-#{key}-text: #{val[1]};\n"
  end
  return colors
end