schizm 0.0.7 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0e2929e0a7f68d25c528e1d9b9d0701a22d58994
4
- data.tar.gz: 623845d2684c673a9ccb76d8f81f354ea984e0a2
3
+ metadata.gz: f17f1d1ae4d7892076dfb8cd163a999483ed2d61
4
+ data.tar.gz: 2138eb60e28bb56149402f8aa681c4d9f957fe57
5
5
  SHA512:
6
- metadata.gz: 0f7659693638560c2aef258fa915cc76c261c5627c6fc4e26792a8e19e732943e6158b3da6d71d1c85f44a7f0d838e99b240f1cad8076e447093d66841d85190
7
- data.tar.gz: ec67ab6941bb54b8294f6a2e2d4f75ec4f489b32c3a452e3892e45c377fac6b651c085db5869e834259362637e9ad74a7641c820981a2fd0754e66606d0e8cea
6
+ metadata.gz: 69974b4442b5f4ddf2f9b24d62147f96eab69f078341680bf94914a8ca09176650bcf63b963b4f3908c8ed889e709023ce1df9940aade7ce26c9332a8d3657bb
7
+ data.tar.gz: 76464c5dcd06ed17f21385fcb718196c65422eb1a2b8a33fb4de92fa7be214641ce45f84b97487c52d5e5e4a4e77a5631efe97db2a331b0a54089d94bab77010
data/lib/schizm/chunk.rb CHANGED
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2017 M. Grady Saunders
1
+ # Copyright (c) 2017-2018 M. Grady Saunders
2
2
  #
3
3
  # Redistribution and use in source and binary forms, with or without
4
4
  # modification, are permitted provided that the following conditions
data/lib/schizm/env.rb CHANGED
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2017 M. Grady Saunders
1
+ # Copyright (c) 2017-2018 M. Grady Saunders
2
2
  #
3
3
  # Redistribution and use in source and binary forms, with or without
4
4
  # modification, are permitted provided that the following conditions
@@ -110,9 +110,9 @@ module Env
110
110
 
111
111
  # Schizm install directory.
112
112
  def self.home
113
- path = File.dirname __FILE__ # $HOME/lib/schizm
114
- path = File.dirname path # $HOME/lib
115
- path = File.dirname path # $HOME
113
+ path = File.dirname __FILE__ # home/lib/schizm
114
+ path = File.dirname path # home/lib
115
+ path = File.dirname path # home
116
116
  return File.absolute_path path
117
117
  end
118
118
 
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2017 M. Grady Saunders
1
+ # Copyright (c) 2017-2018 M. Grady Saunders
2
2
  #
3
3
  # Redistribution and use in source and binary forms, with or without
4
4
  # modification, are permitted provided that the following conditions
data/lib/schizm/markup.rb CHANGED
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2017 M. Grady Saunders
1
+ # Copyright (c) 2017-2018 M. Grady Saunders
2
2
  #
3
3
  # Redistribution and use in source and binary forms, with or without
4
4
  # modification, are permitted provided that the following conditions
data/lib/schizm/match.rb CHANGED
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2017 M. Grady Saunders
1
+ # Copyright (c) 2017-2018 M. Grady Saunders
2
2
  #
3
3
  # Redistribution and use in source and binary forms, with or without
4
4
  # modification, are permitted provided that the following conditions
@@ -153,34 +153,32 @@ module Schizm
153
153
  # Chunk param, content put in match group 1.
154
154
  CHUNK_PARAM = /[#]\[(#{DELIM_BRACKS})\]/um
155
155
 
156
- CHUNK_LABEL_WITH_PARAMS = /#{CHUNK_LABEL}#{CHUNK_PARAM}/um
157
-
158
156
  # Chunk block, content put in match group 1.
159
157
  CHUNK_BLOCK = /\((#{DELIM_PARENS})\)/um
160
158
 
161
159
  # Enter quote block.
162
- ENTER_QUOTE = /^[ ]{0,3}[>][>][>]/u
160
+ ENTER_QUOTE = /^["][ ]{3}/u #/^[ ]{0,3}[>][>][>]/u
163
161
 
164
162
  # Enter aside block.
165
- ENTER_ASIDE = /^[ ]{0,3}[(][i][)]/u
163
+ ENTER_ASIDE = /^[>][ ]{3}/u #/^[ ]{0,3}[.]{3}/u
166
164
 
167
165
  # Enter alert block.
168
- ENTER_ALERT = /^[ ]{0,3}[(][!][)]/u
166
+ ENTER_ALERT = /^[!][ ]{3}/u # /^[ ]{0,3}[!]{1,3}/u
169
167
 
170
168
  # Enter bug block.
171
- ENTER_BUG = /^[ ]{0,3}[(][?][)]/u
169
+ ENTER_BUG = /^[?][ ]{3}/u #/^[ ]{0,3}[?]{1,3}/u
172
170
 
173
171
  # Enter olist element.
174
- ENTER_OLIST = /^[ ]{0,3}--?[#]/u
172
+ ENTER_OLIST = /^\d\.[ ]{2}|\d{2}\.[ ]/u #/^[ ]{0,3}--?[#]/u
175
173
 
176
174
  # Enter ulist element.
177
- ENTER_ULIST = /^[ ]{0,3}--?[%]/u
175
+ ENTER_ULIST = /^[-][ ]{3}|[-]{2}[ ]{2}/u #/^[ ]{0,3}--?[%]/u
178
176
 
179
- # Enter tlist element, content put in match group 1.
180
- ENTER_TLIST = /^[ ]{0,3}\[([x ])\]/u
177
+ # Enter tlist element, type put in match group 1.
178
+ ENTER_TLIST = /^\[([x ])\][ ]/u #/^[ ]{0,3}\[([x ])\]/u
181
179
 
182
180
  # Enter dlist element, content put in match group 1.
183
- ENTER_DLIST = /^[ ]{0,3}(.*?)::/u
181
+ ENTER_DLIST = /^(\p{Graph}.*?)::/u #/^[ ]{0,3}(.*?)::/u
184
182
 
185
183
  # Enter code block.
186
184
  ENTER_CODE = /^[ ]{4,}(?=\p{Graph})/u
@@ -244,39 +242,51 @@ module Schizm
244
242
  [/\|==>/u, 10503] # Right double arrow from bar.
245
243
  ]
246
244
 
247
- CPP_INT_DIGITS_02 = /0[Bb][0-1]+/
245
+ # Base-2 digit sequence for C++ int literal.
246
+ CPP_INT_DIGITS_2 = /0[Bb][0-1]+/
248
247
 
249
- CPP_INT_DIGITS_16 = /0[Xx][0-9A-Fa-f]+/
248
+ # Base-8 digit sequence for C++ int literal.
249
+ CPP_INT_DIGITS_8 = /0[0-7]+/
250
250
 
251
+ # Base-10 digit sequence for C++ int literal.
251
252
  CPP_INT_DIGITS_10 = /[1-9][0-9]*|0(?![0-9])/
252
253
 
253
- CPP_INT_DIGITS_08 = /0[0-7]+/
254
+ # Base-16 digit sequence for C++ int literal.
255
+ CPP_INT_DIGITS_16 = /0[Xx][0-9A-Fa-f]+/
254
256
 
257
+ # Digit sequence for C++ int literal.
255
258
  CPP_INT_DIGITS = Regexp.union [
256
- CPP_INT_DIGITS_02,
257
- CPP_INT_DIGITS_16,
259
+ CPP_INT_DIGITS_2,
260
+ CPP_INT_DIGITS_8,
258
261
  CPP_INT_DIGITS_10,
259
- CPP_INT_DIGITS_08
262
+ CPP_INT_DIGITS_16
260
263
  ]
261
264
 
265
+ # C++ int literal.
262
266
  CPP_INT = /#{CPP_INT_DIGITS}(?:[Uu][Ll]{0,2}|[Ll]{1,2}|_[0-9A-Za-z_]+)?/
263
267
 
268
+ # Base-10 digit sequence for C++ float literal.
264
269
  CPP_FLT_DIGITS_10 = /(?:\.[0-9]+|[0-9]+\.[0-9]*|[0-9]+(?=[Ee]))(?:[Ee][+-]?[0-9]+)?/
265
270
 
271
+ # Base-16 digit sequence for C++ float literal.
266
272
  CPP_FLT_DIGITS_16 = /(?:0[Xx]1\.[0-9A-Fa-f]+[Pp][+-][0-9]+)/
267
273
 
274
+ # Digit sequence for C++ float literal.
268
275
  CPP_FLT_DIGITS = Regexp.union [
269
276
  CPP_FLT_DIGITS_10,
270
277
  CPP_FLT_DIGITS_16
271
278
  ]
272
279
 
280
+ # C++ float literal.
273
281
  CPP_FLT = /#{CPP_FLT_DIGITS}(?:[Ii]?[FfLl]|_[A-Za-z0-9_]+)?/
274
282
 
283
+ # C++ int or float literal.
275
284
  CPP_NUMBER = /[+-]?(?:#{CPP_FLT}|#{CPP_INT})/
276
285
 
286
+ # C++ char or string literal.
277
287
  CPP_STRING = /(?:u8?|[ULR])?(["'])((?:[^\\\1]*(?:\\.)*)*)\1/u
278
288
 
279
- # Syntax highlighting.
289
+ # C++ highlighting table.
280
290
  HIGHLIGHT_CPP = [
281
291
  ["hi-comment", /\/\/.*$/u],
282
292
  ["hi-comment", /\/\*.*?\*\//um],
data/lib/schizm/parse.rb CHANGED
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2017 M. Grady Saunders
1
+ # Copyright (c) 2017-2018 M. Grady Saunders
2
2
  #
3
3
  # Redistribution and use in source and binary forms, with or without
4
4
  # modification, are permitted provided that the following conditions
data/lib/schizm/string.rb CHANGED
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2017 M. Grady Saunders
1
+ # Copyright (c) 2017-2018 M. Grady Saunders
2
2
  #
3
3
  # Redistribution and use in source and binary forms, with or without
4
4
  # modification, are permitted provided that the following conditions
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: schizm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - M. Grady Saunders
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-25 00:00:00.000000000 Z
11
+ date: 2018-01-30 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: mgradysaunders@gmail.com