pygments-shell-console 0.0.2__tar.gz → 0.0.3__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pygments-shell-console
3
- Version: 0.0.2
3
+ Version: 0.0.3
4
4
  Requires-Dist: pygments
5
5
  Description-Content-Type: text/markdown
6
6
 
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "pygments-shell-console" # change this to a package name for your plugin
7
- version = "0.0.2"
7
+ version = "0.0.3"
8
8
  dependencies = ["pygments"]
9
9
  readme = "README.md"
10
10
 
@@ -154,6 +154,9 @@ class ShellConsoleLexer(Lexer):
154
154
  # print(f"\n4. yielding pos={pos+i}, t={t}, v={v}")
155
155
  yield pos+i, t, v
156
156
  if output:
157
- for i, t, v in custom_lexer.get_tokens_unprocessed(output):
158
- # print(f"\n3. yielding pos={pos+i}, t={t}, v={v}")
159
- yield pos+i, t, v
157
+ if custom_lexer:
158
+ for i, t, v in custom_lexer.get_tokens_unprocessed(output):
159
+ # print(f"\n2. yielding pos={pos+i}, t={t}, v={v}")
160
+ yield pos+i, t, v
161
+ else:
162
+ yield pos, Generic.Output, output
@@ -49,3 +49,19 @@ Changes not staged for commit:
49
49
  Changes to be committed:
50
50
  (use "git rm --cached <file>..." to unstage)
51
51
  new file: README.md
52
+
53
+ joapuiib@FP:~/01_introduccio (main) $ git show 8e70293
54
+ commit 8e702933d5dbec9ee71100a1599ae4491085e1aa
55
+ Author: Joan Puigcerver Ibáñez <j.puigcerveribanez@edu.gva.es>
56
+ Date: Fri Oct 13 16:06:59 2023 +0200
57
+
58
+ Added README.md
59
+
60
+ diff --git a/README.md b/README.md
61
+ new file mode 100644
62
+ index 0000000..6d747b3
63
+ --- /dev/null
64
+ +++ b/README.md
65
+ @@ -0,0 +1,2 @@
66
+ +# 01 - Introducció a Git
67
+ +Estem aprenent a utilitzar Git!